feat: add desktop repo (#1071)
This commit is contained in:
21
packages/desktop/test/updates.spec.ts
Normal file
21
packages/desktop/test/updates.spec.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import anyTest, { TestFn } from 'ava'
|
||||
import { createDriver, Driver } from './driver'
|
||||
|
||||
const test = anyTest as TestFn<Driver>
|
||||
|
||||
test.beforeEach(async (t) => {
|
||||
t.context = await createDriver()
|
||||
})
|
||||
|
||||
test.afterEach.always(async (t) => {
|
||||
await t.context.stop()
|
||||
})
|
||||
|
||||
test('has auto-updates enabled by default', async (t) => {
|
||||
t.true(await t.context.updates.autoUpdateEnabled())
|
||||
})
|
||||
|
||||
test('reloads the menu after checking for an update', async (t) => {
|
||||
await t.context.updates.check()
|
||||
t.true(await t.context.appMenu.hasReloaded())
|
||||
})
|
||||
Reference in New Issue
Block a user