fix test with router and new text

This commit is contained in:
Julien Calixte
2023-04-09 11:37:25 +02:00
parent aabfdd80c9
commit 5719fabac1

View File

@@ -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')
}) })
}) })