storj/web/satellite/tests/unit/components/project/ProjectLimitsArea.spec.ts
VitaliiShpital 6bf40f3e59 web/satellite: npm packages updated
Change-Id: I87c1507423817283047d70d0d741307e03905556
2020-01-13 18:08:32 +00:00

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();
});
});