This repository has been archived by the owner on Oct 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't leave test side effects with history singltons.
- Loading branch information
Showing
4 changed files
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import 'babel-polyfill' | ||
|
||
import { hashHistory, browserHistory } from 'react-router' | ||
import { createHashHistory, createHistory } from 'history' | ||
import createTests from '../_createSyncTest' | ||
|
||
createTests(hashHistory, 'Hash History', () => window.location = '#/') | ||
createTests(browserHistory, 'Browser History', () => window.history.replaceState(null, null, '/')) | ||
createTests(createHashHistory, 'Hash History', () => window.location = '#/') | ||
createTests(createHistory, 'Browser History', () => window.history.replaceState(null, null, '/')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { createMemoryHistory } from 'react-router' | ||
import { createMemoryHistory } from 'history' | ||
import createTests from './_createSyncTest' | ||
|
||
createTests(createMemoryHistory(), 'Memory History') | ||
createTests(createMemoryHistory, 'Memory History') |