64c798e912
Use new billing pinia module instead of old payments vuex module Change-Id: I03ee443345259ca96414bfb0771ace751ad36e58
32 lines
917 B
TypeScript
32 lines
917 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 { ProjectsApiMock } from '@/../tests/unit/mock/api/projects';
|
|
import { router } from '@/router';
|
|
import { makeProjectsModule } from '@/store/modules/projects';
|
|
|
|
import OnboardingTourArea from '@/components/onboardingTour/OnboardingTourArea.vue';
|
|
|
|
const localVue = createLocalVue();
|
|
localVue.use(Vuex);
|
|
|
|
const projectsApi = new ProjectsApiMock();
|
|
const projectsModule = makeProjectsModule(projectsApi);
|
|
|
|
const store = new Vuex.Store({ modules: { projectsModule } });
|
|
|
|
describe('OnboardingTourArea.vue', () => {
|
|
it('renders correctly', (): void => {
|
|
const wrapper = shallowMount(OnboardingTourArea, {
|
|
store,
|
|
localVue,
|
|
router,
|
|
});
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|