storj/web/satellite/tests/unit/onboardingTour/steps/OverviewStep.spec.ts

28 lines
732 B
TypeScript
Raw Normal View History

// Copyright (C) 2020 Storj Labs, Inc.
// See LICENSE for copying information.
import Vuex from 'vuex';
import { createLocalVue, shallowMount } from '@vue/test-utils';
import { router } from '@/router';
import { appStateModule } from '@/store/modules/appState';
import OverviewStep from '@/components/onboardingTour/steps/OverviewStep.vue';
const localVue = createLocalVue();
localVue.use(Vuex);
const store = new Vuex.Store({ modules: { appStateModule } });
describe('OverviewStep.vue', (): void => {
it('renders correctly', (): void => {
const wrapper = shallowMount(OverviewStep, {
localVue,
router,
store,
});
expect(wrapper).toMatchSnapshot();
});
});