Files
standardnotes-app-web/packages/desktop/test/window.spec.ts
2022-06-07 11:52:15 -05:00

17 lines
337 B
TypeScript

import anyTest, { TestFn } from 'ava'
import { createDriver, Driver } from './driver'
const test = anyTest as TestFn<Driver>
test.before(async (t) => {
t.context = await createDriver()
})
test.after.always((t) => {
return t.context.stop()
})
test('Only has one window', async (t) => {
t.is(await t.context.windowCount(), 1)
})