blob: b5860c312735b0220504ac3c9daf53dcb5d6a0b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import expect from 'expect';
import execSteps from './execSteps.js';
export default function(history, done) {
const steps = [
location => {
expect(location).toMatchObject({
pathname: '/'
});
const unblock = history.block();
history.push('/home');
expect(history.location).toMatchObject({
pathname: '/'
});
unblock();
}
];
execSteps(steps, history, done);
}
|