blob: 2bad4645cb293ef35a3158a1ef22067cb4adbad9 (
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
26
27
28
|
import expect from 'expect';
import execSteps from './execSteps.js';
export default function(history, done) {
const steps = [
location => {
expect(location).toMatchObject({
pathname: '/'
});
const pathname = '/歴史';
const search = '?キー=値';
const hash = '#ハッシュ';
history.push(pathname + search + hash);
},
(location, action) => {
expect(action).toBe('PUSH');
expect(location).toMatchObject({
pathname: '/歴史',
search: '?キー=値',
hash: '#ハッシュ'
});
}
];
execSteps(steps, history, done);
}
|