From 5719fabac192344456caec957a267cdf3078c0f7 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sun, 9 Apr 2023 11:37:25 +0200 Subject: [PATCH] fix test with router and new text --- src/use-cases/task/components/NewTaskForm.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/use-cases/task/components/NewTaskForm.test.ts b/src/use-cases/task/components/NewTaskForm.test.ts index 08eb486..6c93ce0 100644 --- a/src/use-cases/task/components/NewTaskForm.test.ts +++ b/src/use-cases/task/components/NewTaskForm.test.ts @@ -1,12 +1,12 @@ -import { withStore } from '@/tests/utils' +import { withPlugins } 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, withStore()) + const wrapper = mount(NewTaskVue, withPlugins()) - expect(wrapper.text()).toContain('New Task Form') + expect(wrapper.text()).toContain('Create a task') }) })