add version testing in theme.service

stable
Juanfran 2015-11-26 08:12:57 +01:00
parent 4831b9f5d7
commit 86a2d713b5
1 changed files with 2 additions and 1 deletions

View File

@ -32,5 +32,6 @@ describe "ThemeService", ->
_inject()
it "use a test theme", () ->
window._version = '123'
themeService.use(data.theme)
expect($("link[rel='stylesheet']")).to.have.attr("href", "/styles/theme-#{data.theme}.css")
expect($("link[rel='stylesheet']")).to.have.attr("href", "/123/styles/theme-#{data.theme}.css")