6bf40f3e59
Change-Id: I87c1507423817283047d70d0d741307e03905556
33 lines
984 B
TypeScript
33 lines
984 B
TypeScript
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
import ProjectLimitsArea from '@/components/project/ProjectLimitsArea.vue';
|
|
|
|
import { makeProjectsModule } from '@/store/modules/projects';
|
|
import { NotificatorPlugin } from '@/utils/plugins/notificator';
|
|
import { createLocalVue, shallowMount } from '@vue/test-utils';
|
|
|
|
import { ProjectsApiMock } from '../../mock/api/projects';
|
|
|
|
const localVue = createLocalVue();
|
|
const notificationPlugin = new NotificatorPlugin();
|
|
localVue.use(Vuex);
|
|
localVue.use(notificationPlugin);
|
|
|
|
const projectsApi = new ProjectsApiMock();
|
|
const projectsModule = makeProjectsModule(projectsApi);
|
|
const store = new Vuex.Store({ modules: { projectsModule }});
|
|
|
|
describe('ProjectLimitsArea', () => {
|
|
it('snapshot not changed', () => {
|
|
const wrapper = shallowMount(ProjectLimitsArea, {
|
|
store,
|
|
localVue,
|
|
});
|
|
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|