chore: supply test (#328)

This commit is contained in:
wangzhaofei 2022-04-08 18:32:53 +08:00 committed by GitHub
parent 8808046f11
commit 672cc6afc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,8 +15,14 @@ describe('Counter.vue', () => {
expect(wrapper.find('.inc').exists()).toBe(true)
await wrapper.get('button').trigger('click')
expect(wrapper.find('.dec').exists()).toBe(true)
await wrapper.get('.inc').trigger('click')
expect(wrapper.text()).toContain('1')
await wrapper.get('.dec').trigger('click')
expect(wrapper.text()).toContain('0')
})
})