Commit 6e39c0ad authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'xanf-vtu-30-row-spec-assert' into 'master'

Change visitUrl checks in URL

Closes #191310

See merge request gitlab-org/gitlab!22306
parents b99f2bf2 34c2d392
......@@ -108,7 +108,9 @@ describe('Repository table row component', () => {
if (pushes) {
expect(visitUrl).not.toHaveBeenCalled();
} else {
expect(visitUrl).toHaveBeenCalledWith('https://test.com', undefined);
const [url, external] = visitUrl.mock.calls[0];
expect(url).toBe('https://test.com');
expect(external).toBeFalsy();
}
});
......
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