Commit 5412e7bf authored by Alexander Turinske's avatar Alexander Turinske

Update test to be more strict

- test now verifies more of the string instead of just a
  number
parent 29a3bab9
......@@ -130,7 +130,7 @@ describe('Vulnerability list component', () => {
const cellText = findCellText(`location-${id}`);
expect(cellText).toContain(project.nameWithNamespace);
expect(cellText).toContain(location.file);
expect(cellText).toContain(location.startLine);
expect(cellText).toContain(`(line: ${location.startLine})`);
});
it('should display the vulnerability locations for code with no line data', () => {
......
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