From a0459af5263a1710162b0de6cd575cb133a8a622 Mon Sep 17 00:00:00 2001 From: dlohvinov Date: Fri, 8 Dec 2023 11:48:21 +0200 Subject: [PATCH] fix: tests [WTEL-3902] --- .../components/__tests__/create-flow-popup.spec.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/modules/routing/modules/flow/components/__tests__/create-flow-popup.spec.js b/src/modules/routing/modules/flow/components/__tests__/create-flow-popup.spec.js index e1ae7180b..4da42e26c 100644 --- a/src/modules/routing/modules/flow/components/__tests__/create-flow-popup.spec.js +++ b/src/modules/routing/modules/flow/components/__tests__/create-flow-popup.spec.js @@ -1,9 +1,21 @@ import { shallowMount } from '@vue/test-utils'; +import { createStore } from 'vuex'; +import appearance from '../../../../../appearance/store/appearance'; import CreateFlowPopup from '../create-flow-popup.vue'; describe('CreateFlowPopup', () => { + const store = createStore({ + modules: { + appearance, + }, + }); + it('renders a component', () => { - const wrapper = shallowMount(CreateFlowPopup); + const wrapper = shallowMount(CreateFlowPopup, { + global: { + plugins: [store], + }, + }); expect(wrapper.isVisible()).toBe(true); }); });