2020-04-22 17:21:12 +01:00
|
|
|
// Copyright (C) 2020 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
2020-12-04 12:47:12 +00:00
|
|
|
import Vuex from 'vuex';
|
2022-09-29 00:51:19 +01:00
|
|
|
import { createLocalVue, shallowMount } from '@vue/test-utils';
|
2020-04-22 17:21:12 +01:00
|
|
|
|
2023-04-04 13:19:02 +01:00
|
|
|
import { FrontendConfigApiMock } from '@/../tests/unit/mock/api/config';
|
2020-12-04 12:47:12 +00:00
|
|
|
import { router } from '@/router';
|
2023-03-24 05:55:48 +00:00
|
|
|
import { makeAppStateModule } from '@/store/modules/appState';
|
2022-09-08 15:11:09 +01:00
|
|
|
|
|
|
|
import OverviewStep from '@/components/onboardingTour/steps/OverviewStep.vue';
|
2020-04-22 17:21:12 +01:00
|
|
|
|
2020-12-04 15:38:28 +00:00
|
|
|
const localVue = createLocalVue();
|
|
|
|
localVue.use(Vuex);
|
2020-12-04 12:47:12 +00:00
|
|
|
|
2023-03-24 05:55:48 +00:00
|
|
|
const appStateModule = makeAppStateModule(new FrontendConfigApiMock());
|
|
|
|
|
2022-09-08 15:11:09 +01:00
|
|
|
const store = new Vuex.Store({ modules: { appStateModule } });
|
2020-12-04 12:47:12 +00:00
|
|
|
|
2023-03-16 19:52:30 +00:00
|
|
|
// TODO: figure out how to fix the test
|
|
|
|
xdescribe('OverviewStep.vue', (): void => {
|
2021-06-28 23:57:41 +01:00
|
|
|
it('renders correctly', (): void => {
|
2022-09-29 00:51:19 +01:00
|
|
|
const wrapper = shallowMount(OverviewStep, {
|
2020-12-04 15:38:28 +00:00
|
|
|
localVue,
|
2020-12-04 12:47:12 +00:00
|
|
|
router,
|
|
|
|
store,
|
|
|
|
});
|
|
|
|
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
2020-04-22 17:21:12 +01:00
|
|
|
});
|
|
|
|
});
|