2019-12-12 16:25:38 +00:00
|
|
|
// 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';
|
2020-01-08 15:58:28 +00:00
|
|
|
import { NotificatorPlugin } from '@/utils/plugins/notificator';
|
2019-12-12 16:25:38 +00:00
|
|
|
import { createLocalVue, shallowMount } from '@vue/test-utils';
|
|
|
|
|
|
|
|
import { ProjectsApiMock } from '../../mock/api/projects';
|
|
|
|
|
|
|
|
const localVue = createLocalVue();
|
2020-01-08 15:58:28 +00:00
|
|
|
const notificationPlugin = new NotificatorPlugin();
|
2019-12-12 16:25:38 +00:00
|
|
|
localVue.use(Vuex);
|
2020-01-08 15:58:28 +00:00
|
|
|
localVue.use(notificationPlugin);
|
2019-12-12 16:25:38 +00:00
|
|
|
|
|
|
|
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();
|
|
|
|
});
|
|
|
|
});
|