Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix failing router test after Jest update
A Jest bug fix means the default testURL for tests is now
http://localhost instead of `about:blank`. Update the router test args
accordingly.
  • Loading branch information
ianoxley committed Sep 10, 2018
commit 4a5f7c1636efff6e3eb6183675bb09a2238856e5
4 changes: 3 additions & 1 deletion src/utils/router/__spec__.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ describe('startRouter', () => {

router.props.onUpdate();

// Change last argument to '/' in response to this fix:
// https://github.com/facebook/jest/pull/6792
expect(gaSpy).toHaveBeenCalledWith('set', 'page', '/');
expect(gaSpy).toHaveBeenCalledWith('send', 'pageview');
expect(gaSpy).toHaveBeenCalledWith('set', 'page', 'blank');
});
});

Expand Down