21 lines
527 B
JavaScript
21 lines
527 B
JavaScript
import { shallowMount } from '@vue/test-utils';
|
|
import EmptyChart from '~/monitoring/components/charts/empty_chart.vue';
|
|
|
|
describe('Empty Chart component', () => {
|
|
let emptyChart;
|
|
const graphTitle = 'Memory Usage';
|
|
|
|
beforeEach(() => {
|
|
emptyChart = shallowMount(EmptyChart, {
|
|
propsData: {
|
|
graphTitle,
|
|
},
|
|
});
|
|
});
|
|
|
|
describe('Computed props', () => {
|
|
it('sets the height for the svg container', () => {
|
|
expect(emptyChart.vm.svgContainerStyle.height).toBe('300px');
|
|
});
|
|
});
|
|
});
|