c5bca894fd
Added imports linting, trailing commas, trailing semicolons, single quotes and spaces between curly braces. Change-Id: I5de5d3eea48753dfe2737983b230bafaffe898c8
31 lines
826 B
TypeScript
31 lines
826 B
TypeScript
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
import { createLocalVue, shallowMount } from '@vue/test-utils';
|
|
import Vuex from 'vuex';
|
|
|
|
import { router } from '@/router';
|
|
import { appStateModule } from '@/store/modules/appState';
|
|
|
|
import GeneratePassphrase from '@/components/common/GeneratePassphrase.vue';
|
|
|
|
const localVue = createLocalVue();
|
|
localVue.use(Vuex);
|
|
|
|
const store = new Vuex.Store({ modules: {
|
|
appStateModule,
|
|
} });
|
|
|
|
describe('GeneratePassphrase.vue', () => {
|
|
it('renders correctly with default props', () => {
|
|
const wrapper = shallowMount<GeneratePassphrase>(GeneratePassphrase, {
|
|
localVue,
|
|
router,
|
|
store,
|
|
});
|
|
|
|
expect(wrapper.vm.passphrase).toBeTruthy();
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|