Skip to content

Commit

Permalink
chore: supply test (antfu-collective#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1815 authored Apr 8, 2022
1 parent 8808046 commit 672cc6a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/component.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
})
})

0 comments on commit 672cc6a

Please sign in to comment.