bb38418e97
Change-Id: I77b2766d6fe43072f4a94471bd1832decf0d4ebd
32 lines
923 B
TypeScript
32 lines
923 B
TypeScript
// Copyright (C) 2020 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
import Vuex from 'vuex';
|
|
import { createLocalVue, shallowMount } from '@vue/test-utils';
|
|
|
|
import { FrontendConfigApiMock } from '@/../tests/unit/mock/api/config';
|
|
import { router } from '@/router';
|
|
import { makeAppStateModule } from '@/store/modules/appState';
|
|
|
|
import OverviewStep from '@/components/onboardingTour/steps/OverviewStep.vue';
|
|
|
|
const localVue = createLocalVue();
|
|
localVue.use(Vuex);
|
|
|
|
const appStateModule = makeAppStateModule(new FrontendConfigApiMock());
|
|
|
|
const store = new Vuex.Store({ modules: { appStateModule } });
|
|
|
|
// TODO: figure out how to fix the test
|
|
xdescribe('OverviewStep.vue', (): void => {
|
|
it('renders correctly', (): void => {
|
|
const wrapper = shallowMount(OverviewStep, {
|
|
localVue,
|
|
router,
|
|
store,
|
|
});
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|