Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Commit 360a094

Browse files
committed
Fix indentation in tests
1 parent fe7487a commit 360a094

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

test/createTests.js

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
2222
it('creates actions', () => {
2323
expect(pushPath('/foo', { bar: 'baz' })).toEqual({
2424
type: UPDATE_PATH,
25-
payload: {
26-
path: '/foo',
27-
replace: false,
28-
state: { bar: 'baz' },
29-
avoidRouterUpdate: false
25+
payload: {
26+
path: '/foo',
27+
replace: false,
28+
state: { bar: 'baz' },
29+
avoidRouterUpdate: false
3030
}
3131
});
3232

3333
expect(pushPath('/foo', undefined, { avoidRouterUpdate: true })).toEqual({
3434
type: UPDATE_PATH,
3535
payload: {
36-
path: '/foo',
37-
state: undefined,
38-
replace: false,
39-
avoidRouterUpdate: true
40-
}
36+
path: '/foo',
37+
state: undefined,
38+
replace: false,
39+
avoidRouterUpdate: true
40+
}
4141
});
4242
});
4343
});
@@ -47,31 +47,31 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
4747
expect(replacePath('/foo', { bar: 'baz' })).toEqual({
4848
type: UPDATE_PATH,
4949
payload: {
50-
path: '/foo',
51-
replace: true,
52-
state: { bar: 'baz' },
53-
avoidRouterUpdate: false
54-
}
50+
path: '/foo',
51+
replace: true,
52+
state: { bar: 'baz' },
53+
avoidRouterUpdate: false
54+
}
5555
});
5656

5757
expect(replacePath('/foo', undefined, { avoidRouterUpdate: true })).toEqual({
5858
type: UPDATE_PATH,
5959
payload: {
60-
path: '/foo',
61-
state: undefined,
62-
replace: true,
63-
avoidRouterUpdate: true
64-
}
60+
path: '/foo',
61+
state: undefined,
62+
replace: true,
63+
avoidRouterUpdate: true
64+
}
6565
});
6666

6767
expect(replacePath('/foo', undefined, { avoidRouterUpdate: false })).toEqual({
6868
type: UPDATE_PATH,
6969
payload: {
70-
path: '/foo',
71-
state: undefined,
72-
replace: true,
73-
avoidRouterUpdate: false
74-
}
70+
path: '/foo',
71+
state: undefined,
72+
replace: true,
73+
avoidRouterUpdate: false
74+
}
7575
});
7676
});
7777
});
@@ -86,9 +86,9 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
8686
expect(routeReducer(state, {
8787
type: UPDATE_PATH,
8888
payload: {
89-
path: '/bar',
90-
replace: false
91-
}
89+
path: '/bar',
90+
replace: false
91+
}
9292
})).toEqual({
9393
path: '/bar',
9494
replace: false,
@@ -101,10 +101,10 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
101101
expect(routeReducer(state, {
102102
type: UPDATE_PATH,
103103
payload: {
104-
path: '/bar',
105-
replace: true,
106-
avoidRouterUpdate: false
107-
}
104+
path: '/bar',
105+
replace: true,
106+
avoidRouterUpdate: false
107+
}
108108
})).toEqual({
109109
path: '/bar',
110110
replace: true,
@@ -117,10 +117,10 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
117117
expect(routeReducer(state, {
118118
type: UPDATE_PATH,
119119
payload: {
120-
path: '/bar',
121-
replace: false,
122-
avoidRouterUpdate: true
123-
}
120+
path: '/bar',
121+
replace: false,
122+
avoidRouterUpdate: true
123+
}
124124
})).toEqual({
125125
path: '/bar',
126126
replace: false,

0 commit comments

Comments
 (0)