fix(dialog): dialog test failed (#578)

Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
This commit is contained in:
Yugang Cao 2021-07-22 21:55:32 +08:00 committed by GitHub
parent 9c20c519fa
commit 9ae9db50cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,13 +51,14 @@ describe('n-dialog', () => {
expect(wrapper.find('button').exists()).toEqual(false)
})
it('async', async () => {
it('loading', async () => {
const Test = defineComponent({
setup () {
const dialog = useDialog()
dialog.success({
title: 'Async',
title: 'Loading',
content: 'Content',
positiveText: '确认',
loading: true
})
},