fix(theme-picker): Update spec to work with iFrame rewriting function

This commit is contained in:
Jackie Luo 2016-03-05 11:24:37 -08:00
parent 5845a7f8e5
commit 02cdc5d38a

View file

@ -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(<ThemePicker />);