Rename test

This commit is contained in:
Pig Fang 2019-11-30 23:19:03 +08:00
parent c858bbf5be
commit 1e4454cdc0

View File

@ -1,5 +1,5 @@
import 'bootstrap'
import * as notify from '@/scripts/notify'
import * as modal from '@/scripts/modal'
test('show modal', async () => {
process.nextTick(() => {
@ -8,6 +8,6 @@ test('show modal', async () => {
).toBe('general.tip')
document.querySelector<HTMLButtonElement>('.btn-primary')!.click()
})
const { value } = await notify.showModal()
const { value } = await modal.showModal()
expect(value).toBe('')
})