test: tsify spec for experimental views api (#19966)
This commit is contained in:
parent
4e809f0048
commit
92c3a4e4c2
3 changed files with 22 additions and 14 deletions
15
spec-main/api-view-spec.ts
Normal file
15
spec-main/api-view-spec.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { closeWindow } from './window-helpers'
|
||||
import { TopLevelWindow, View } from 'electron'
|
||||
|
||||
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())
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue