electron/spec-main/api-view-spec.ts
Samuel Attard 0d2e967960
feat: expose electron/{process} typed modules (#22937)
* feat: expose electron/{process} typed modules

* chore: update imports for common modules

* chore: update typescript generator

* chore: remap electron/* to the internal packages
2020-04-06 17:04:09 -07:00

15 lines
395 B
TypeScript

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