mirror of
https://github.com/ArthurDanjou/artdanj-resume.git
synced 2026-01-14 15:54:06 +01:00
Remove unused files
This commit is contained in:
@@ -1,20 +0,0 @@
|
|||||||
import { mount } from '@vue/test-utils'
|
|
||||||
|
|
||||||
describe('Counter.vue', () => {
|
|
||||||
it('should render', () => {
|
|
||||||
const wrapper = mount(Counter, { props: { initial: 10 } })
|
|
||||||
expect(wrapper.text()).toContain('10')
|
|
||||||
expect(wrapper.html()).toMatchSnapshot()
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should be interactive', async() => {
|
|
||||||
const wrapper = mount(Counter, { props: { initial: 0 } })
|
|
||||||
expect(wrapper.text()).toContain('0')
|
|
||||||
|
|
||||||
expect(wrapper.find('.inc').exists()).toBe(true)
|
|
||||||
|
|
||||||
await wrapper.get('button').trigger('click')
|
|
||||||
|
|
||||||
expect(wrapper.text()).toContain('1')
|
|
||||||
})
|
|
||||||
})
|
|
||||||
Reference in New Issue
Block a user