diff --git a/spec/theme-spec.coffee b/spec/theme-spec.coffee index d77cf80c4..2d95c263a 100644 --- a/spec/theme-spec.coffee +++ b/spec/theme-spec.coffee @@ -10,7 +10,7 @@ describe "Theme", -> $("#jasmine-content").append $("
") afterEach -> - theme.deactivate() + theme.deactivate() if theme? describe "when the theme is a file", -> it "loads and applies css", -> @@ -57,9 +57,6 @@ describe "Theme", -> themePath = project.resolve('themes/theme-with-package-file') theme = new Theme(themePath) - afterEach -> - theme.deactivate() - it "reloads without readding to the stylesheets list", -> expect(theme.getStylesheetPaths().length).toBe 3 theme.loadStylesheet(theme.getStylesheetPaths()[0]) @@ -70,9 +67,6 @@ describe "Theme", -> themePath = project.resolve('themes/theme-with-package-file') theme = new Theme(themePath) - afterEach -> - theme.deactivate() - it "deactivated event fires on .deactivate()", -> theme.on 'deactivated', spy = jasmine.createSpy() theme.deactivate()