add a store for newTaskForm test

This commit is contained in:
Julien Calixte
2023-04-09 10:47:26 +02:00
parent 6d80abba71
commit ef20813c66

View File

@@ -1,10 +1,11 @@
import { withStore } 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) const wrapper = mount(NewTaskVue, withStore())
expect(wrapper.text()).toContain('New Task Form') expect(wrapper.text()).toContain('New Task Form')
}) })