debian-mirror-gitlab/spec/frontend/projects/pipelines/charts/components/statistics_list_spec.js

25 lines
523 B
JavaScript
Raw Normal View History

2020-03-13 15:44:24 +05:30
import { shallowMount } from '@vue/test-utils';
import Component from '~/projects/pipelines/charts/components/statistics_list.vue';
import { counts } from '../mock_data';
describe('StatisticsList', () => {
let wrapper;
beforeEach(() => {
wrapper = shallowMount(Component, {
propsData: {
counts,
},
});
});
afterEach(() => {
wrapper.destroy();
wrapper = null;
});
2021-02-22 17:27:13 +05:30
it('displays the counts data with labels', () => {
2020-03-13 15:44:24 +05:30
expect(wrapper.element).toMatchSnapshot();
});
});