Skip to content

Commit a9f9f3c

Browse files
committed
Update pushState test
1 parent adc0a2f commit a9f9f3c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/__tests__/pushState-test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import expect from 'expect';
22
import React from 'react';
3-
import createHistory from 'history/lib/createHashHistory';
43
import resetHash from './resetHash';
54
import execSteps from './execSteps';
65
import Router from '../Router';
@@ -43,10 +42,9 @@ describe('pushState', function () {
4342
];
4443

4544
var execNextStep = execSteps(steps, done);
46-
var history = createHistory();
4745

4846
React.render((
49-
<Router history={history} onUpdate={execNextStep}>
47+
<Router onUpdate={execNextStep}>
5048
<Route path="/" component={Index}/>
5149
<Route path="/home/hi:there" component={Home}/>
5250
</Router>

0 commit comments

Comments
 (0)