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

16 lines
379 B
TypeScript
Raw Normal View History

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