fix test with router and new text
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
import { withStore } from '@/tests/utils'
|
import { withPlugins } from '@/tests/utils'
|
||||||
import { mount } from '@vue/test-utils'
|
import { mount } from '@vue/test-utils'
|
||||||
import { describe, expect, it } from 'vitest'
|
import { describe, expect, it } from 'vitest'
|
||||||
import NewTaskVue from './NewTaskForm.vue'
|
import NewTaskVue from './NewTaskForm.vue'
|
||||||
|
|
||||||
describe('New Task Form', () => {
|
describe('New Task Form', () => {
|
||||||
it('displays New Task Form title', () => {
|
it('displays New Task Form title', () => {
|
||||||
const wrapper = mount(NewTaskVue, withStore())
|
const wrapper = mount(NewTaskVue, withPlugins())
|
||||||
|
|
||||||
expect(wrapper.text()).toContain('New Task Form')
|
expect(wrapper.text()).toContain('Create a task')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user