This commit is contained in:
Pig Fang 2019-08-25 17:32:39 +08:00
parent deb8c44e45
commit 5465399eda
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ export default Vue.extend({
const h = this.$createElement
const vnode = h('div', {}, [
h('p', message),
h('ul', {}, reason.map(item => h('li', item)))
h('ul', {}, reason.map(item => h('li', item))),
])
this.$alert('', { message: vnode, type: 'warning' })
}

View File

@ -85,7 +85,7 @@ test('enable plugin', async () => {
)
expect(Vue.prototype.$alert).toBeCalledWith('', ({
type: 'warning',
message: expect.anything()
message: expect.anything(),
}))
wrapper.findAll('.actions').at(1)