electron/spec-main/api-view-spec.ts

16 lines
395 B
TypeScript
Raw Normal View History

2020-03-20 20:28:31 +00:00
import { closeWindow } from './window-helpers';
import { TopLevelWindow, View } from 'electron/main';
describe('View', () => {
2020-03-20 20:28:31 +00:00
let w: TopLevelWindow;
afterEach(async () => {
2020-03-20 20:28:31 +00:00
await closeWindow(w as any);
w = null as unknown as TopLevelWindow;
});
it('can be used as content view', () => {
2020-03-20 20:28:31 +00:00
w = new TopLevelWindow({ show: false });
w.setContentView(new View());
});
});