Commit 9e3fa3f8 authored by samdbeckham's avatar samdbeckham

Tests the rendered counts rather than the props

parent 624cd04d
......@@ -21,7 +21,10 @@ describe('Vulnerability Count List', () => {
});
it('should fetch the counts for each severity', () => {
expect(vm.counts[0]).toEqual({ severity: 'critical', count: mockData.critical });
const firstCount = vm.$el.querySelector('.js-count');
expect(firstCount.textContent).toContain('critical');
expect(firstCount.textContent).toContain(mockData.critical);
});
it('should render a counter for each severity', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment