From ef20813c664da697c4fda29705dcd81813bc1aa9 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sun, 9 Apr 2023 10:47:26 +0200 Subject: [PATCH] add a store for newTaskForm test --- src/use-cases/task/components/NewTaskForm.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/use-cases/task/components/NewTaskForm.test.ts b/src/use-cases/task/components/NewTaskForm.test.ts index bb0a155..08eb486 100644 --- a/src/use-cases/task/components/NewTaskForm.test.ts +++ b/src/use-cases/task/components/NewTaskForm.test.ts @@ -1,10 +1,11 @@ +import { withStore } from '@/tests/utils' import { mount } from '@vue/test-utils' import { describe, expect, it } from 'vitest' import NewTaskVue from './NewTaskForm.vue' describe('New Task Form', () => { it('displays New Task Form title', () => { - const wrapper = mount(NewTaskVue) + const wrapper = mount(NewTaskVue, withStore()) expect(wrapper.text()).toContain('New Task Form') })