From e3bbea339702fc8b7f90c116637b7b76dcafea8b Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 31 Dec 2012 14:25:03 -0600 Subject: [PATCH] Fix spec now that `Theme.load` returns a theme instead of an array --- spec/app/theme-spec.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/app/theme-spec.coffee b/spec/app/theme-spec.coffee index c7a734862..aef4aab8e 100644 --- a/spec/app/theme-spec.coffee +++ b/spec/app/theme-spec.coffee @@ -3,20 +3,20 @@ fs = require 'fs' Theme = require 'theme' describe "@load(name)", -> - themes = null + theme = null beforeEach -> $("#jasmine-content").append $("
") afterEach -> - theme.deactivate() for theme in themes + theme.deactivate() describe "TextMateTheme", -> it "applies the theme's stylesheet to the current window", -> expect($(".editor").css("background-color")).not.toBe("rgb(20, 20, 20)") themePath = require.resolve(fs.join('fixtures', 'test.tmTheme')) - themes = Theme.load(themePath) + theme = Theme.load(themePath) expect($(".editor").css("background-color")).toBe("rgb(20, 20, 20)") describe "AtomTheme", -> @@ -26,7 +26,7 @@ describe "@load(name)", -> expect($(".editor").css("padding-bottom")).not.toBe("103px") themePath = require.resolve(fs.join('fixtures', 'test-atom-theme')) - themes = Theme.load(themePath) + theme = Theme.load(themePath) expect($(".editor").css("padding-top")).toBe("101px") expect($(".editor").css("padding-right")).toBe("102px") expect($(".editor").css("padding-bottom")).toBe("103px")