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