24 lines
523 B
JavaScript
24 lines
523 B
JavaScript
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;
|
|
});
|
|
|
|
it('displays the counts data with labels', () => {
|
|
expect(wrapper.element).toMatchSnapshot();
|
|
});
|
|
});
|