27d9d9f6d4
Start using new pinia module instead of old vuex module Change-Id: I6bb5d4a5cf0eeb4d0a86afce760f5c258c20c1e5
27 lines
656 B
TypeScript
27 lines
656 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 { router } from '@/router';
|
|
|
|
import OnboardingTourArea from '@/components/onboardingTour/OnboardingTourArea.vue';
|
|
|
|
const localVue = createLocalVue();
|
|
localVue.use(Vuex);
|
|
|
|
const store = new Vuex.Store({});
|
|
|
|
describe('OnboardingTourArea.vue', () => {
|
|
it('renders correctly', (): void => {
|
|
const wrapper = shallowMount(OnboardingTourArea, {
|
|
store,
|
|
localVue,
|
|
router,
|
|
});
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|