Skip to content

Commit

Permalink
Fix hash history test reset
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Nov 7, 2019
1 parent bb91b28 commit 84c3488
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions modules/__tests__/createBrowserHistory-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ import BlockPopWithoutListening from './TestSequences/BlockPopWithoutListening.j
describe('a browser history', () => {
let history;
beforeEach(() => {
if (window.location.pathname !== '/') {
window.history.replaceState(null, null, '/');
}
window.history.replaceState(null, null, '/');
history = createBrowserHistory();
});

Expand Down
4 changes: 1 addition & 3 deletions modules/__tests__/createHashHistory-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ import BlockPopWithoutListening from './TestSequences/BlockPopWithoutListening.j
describe('a hash history', () => {
let history;
beforeEach(() => {
if (window.location.hash !== '#/') {
window.location.hash = '/';
}
window.history.replaceState(null, null, '#/');
history = createHashHistory();
});

Expand Down

0 comments on commit 84c3488

Please sign in to comment.