mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 10:11:25 +08:00
fix(theme-picker): Update spec to work with iFrame rewriting function
This commit is contained in:
parent
8b93d34c18
commit
5f2d6c2e35
1 changed files with 2 additions and 1 deletions
|
@ -8,9 +8,10 @@ const {resourcePath} = NylasEnv.getLoadSettings();
|
||||||
const light = new ThemePackage(resourcePath + '/internal_packages/ui-light');
|
const light = new ThemePackage(resourcePath + '/internal_packages/ui-light');
|
||||||
const dark = new ThemePackage(resourcePath + '/internal_packages/ui-dark');
|
const dark = new ThemePackage(resourcePath + '/internal_packages/ui-dark');
|
||||||
|
|
||||||
describe('ThemePicker', ()=> {
|
fdescribe('ThemePicker', ()=> {
|
||||||
beforeEach(()=> {
|
beforeEach(()=> {
|
||||||
spyOn(ThemePicker.prototype, '_setActiveTheme').andCallThrough();
|
spyOn(ThemePicker.prototype, '_setActiveTheme').andCallThrough();
|
||||||
|
spyOn(ThemePicker.prototype, '_rewriteIFrame');
|
||||||
spyOn(NylasEnv.themes, 'getLoadedThemes').andReturn([light, dark]);
|
spyOn(NylasEnv.themes, 'getLoadedThemes').andReturn([light, dark]);
|
||||||
spyOn(NylasEnv.themes, 'getActiveTheme').andReturn(light);
|
spyOn(NylasEnv.themes, 'getActiveTheme').andReturn(light);
|
||||||
this.component = ReactTestUtils.renderIntoDocument(<ThemePicker />);
|
this.component = ReactTestUtils.renderIntoDocument(<ThemePicker />);
|
||||||
|
|
Loading…
Reference in a new issue