From 02cdc5d38a1b3e0315359ac253ee87fc2be1cde8 Mon Sep 17 00:00:00 2001 From: Jackie Luo Date: Sat, 5 Mar 2016 11:24:37 -0800 Subject: [PATCH] fix(theme-picker): Update spec to work with iFrame rewriting function --- internal_packages/theme-picker/spec/theme-picker-spec.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal_packages/theme-picker/spec/theme-picker-spec.jsx b/internal_packages/theme-picker/spec/theme-picker-spec.jsx index 094aa29ae..31453d9b6 100644 --- a/internal_packages/theme-picker/spec/theme-picker-spec.jsx +++ b/internal_packages/theme-picker/spec/theme-picker-spec.jsx @@ -8,9 +8,10 @@ const {resourcePath} = NylasEnv.getLoadSettings(); const light = new ThemePackage(resourcePath + '/internal_packages/ui-light'); const dark = new ThemePackage(resourcePath + '/internal_packages/ui-dark'); -describe('ThemePicker', ()=> { +fdescribe('ThemePicker', ()=> { beforeEach(()=> { spyOn(ThemePicker.prototype, '_setActiveTheme').andCallThrough(); + spyOn(ThemePicker.prototype, '_rewriteIFrame'); spyOn(NylasEnv.themes, 'getLoadedThemes').andReturn([light, dark]); spyOn(NylasEnv.themes, 'getActiveTheme').andReturn(light); this.component = ReactTestUtils.renderIntoDocument();