electron/spec/api-view-spec.ts
Milan Burda 4bc6b15f53
refactor: move spec helpers to spec/lib (#37010)
Co-authored-by: Milan Burda <miburda@microsoft.com>
2023-01-25 13:01:25 -08:00

15 lines
383 B
TypeScript

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