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

30 lines
855 B
TypeScript
Raw Normal View History

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