Commit 34c2d392 authored by Illya Klymov's avatar Illya Klymov

Change visitUrl checks

parent 0d01198a
...@@ -108,7 +108,9 @@ describe('Repository table row component', () => { ...@@ -108,7 +108,9 @@ describe('Repository table row component', () => {
if (pushes) { if (pushes) {
expect(visitUrl).not.toHaveBeenCalled(); expect(visitUrl).not.toHaveBeenCalled();
} else { } 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