2023-01-25 21:01:25 +00:00
|
|
|
import { closeWindow } from './lib/window-helpers';
|
2020-06-29 07:06:20 +00:00
|
|
|
import { BaseWindow, View } from 'electron/main';
|
2019-08-27 07:37:30 +00:00
|
|
|
|
|
|
|
describe('View', () => {
|
2020-06-29 07:06:20 +00:00
|
|
|
let w: BaseWindow;
|
2019-08-27 07:37:30 +00:00
|
|
|
afterEach(async () => {
|
|
|
|
await closeWindow(w as any);
|
2020-06-29 07:06:20 +00:00
|
|
|
w = null as unknown as BaseWindow;
|
2019-08-27 07:37:30 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it('can be used as content view', () => {
|
2020-06-29 07:06:20 +00:00
|
|
|
w = new BaseWindow({ show: false });
|
2019-08-27 07:37:30 +00:00
|
|
|
w.setContentView(new View());
|
|
|
|
});
|
|
|
|
});
|