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

Commit 211e9cd

Browse files
committed
Merge pull request #76 from kjbekkelund/indentation-tests
Fix indentation in tests
2 parents a7cf7a7 + 360a094 commit 211e9cd

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
@@ -41,22 +41,22 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
4141
it('creates actions', () => {
4242
expect(pushPath('/foo', { bar: 'baz' })).toEqual({
4343
type: UPDATE_PATH,
44-
payload: {
45-
path: '/foo',
46-
replace: false,
47-
state: { bar: 'baz' },
48-
avoidRouterUpdate: false
44+
payload: {
45+
path: '/foo',
46+
replace: false,
47+
state: { bar: 'baz' },
48+
avoidRouterUpdate: false
4949
}
5050
});
5151

5252
expect(pushPath('/foo', undefined, { avoidRouterUpdate: true })).toEqual({
5353
type: UPDATE_PATH,
5454
payload: {
55-
path: '/foo',
56-
state: undefined,
57-
replace: false,
58-
avoidRouterUpdate: true
59-
}
55+
path: '/foo',
56+
state: undefined,
57+
replace: false,
58+
avoidRouterUpdate: true
59+
}
6060
});
6161
});
6262
});
@@ -66,31 +66,31 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
6666
expect(replacePath('/foo', { bar: 'baz' })).toEqual({
6767
type: UPDATE_PATH,
6868
payload: {
69-
path: '/foo',
70-
replace: true,
71-
state: { bar: 'baz' },
72-
avoidRouterUpdate: false
73-
}
69+
path: '/foo',
70+
replace: true,
71+
state: { bar: 'baz' },
72+
avoidRouterUpdate: false
73+
}
7474
});
7575

7676
expect(replacePath('/foo', undefined, { avoidRouterUpdate: true })).toEqual({
7777
type: UPDATE_PATH,
7878
payload: {
79-
path: '/foo',
80-
state: undefined,
81-
replace: true,
82-
avoidRouterUpdate: true
83-
}
79+
path: '/foo',
80+
state: undefined,
81+
replace: true,
82+
avoidRouterUpdate: true
83+
}
8484
});
8585

8686
expect(replacePath('/foo', undefined, { avoidRouterUpdate: false })).toEqual({
8787
type: UPDATE_PATH,
8888
payload: {
89-
path: '/foo',
90-
state: undefined,
91-
replace: true,
92-
avoidRouterUpdate: false
93-
}
89+
path: '/foo',
90+
state: undefined,
91+
replace: true,
92+
avoidRouterUpdate: false
93+
}
9494
});
9595
});
9696
});
@@ -105,9 +105,9 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
105105
expect(routeReducer(state, {
106106
type: UPDATE_PATH,
107107
payload: {
108-
path: '/bar',
109-
replace: false
110-
}
108+
path: '/bar',
109+
replace: false
110+
}
111111
})).toEqual({
112112
path: '/bar',
113113
replace: false,
@@ -120,10 +120,10 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
120120
expect(routeReducer(state, {
121121
type: UPDATE_PATH,
122122
payload: {
123-
path: '/bar',
124-
replace: true,
125-
avoidRouterUpdate: false
126-
}
123+
path: '/bar',
124+
replace: true,
125+
avoidRouterUpdate: false
126+
}
127127
})).toEqual({
128128
path: '/bar',
129129
replace: true,
@@ -136,10 +136,10 @@ module.exports = function createTests(createHistory, name, reset = defaultReset)
136136
expect(routeReducer(state, {
137137
type: UPDATE_PATH,
138138
payload: {
139-
path: '/bar',
140-
replace: false,
141-
avoidRouterUpdate: true
142-
}
139+
path: '/bar',
140+
replace: false,
141+
avoidRouterUpdate: true
142+
}
143143
})).toEqual({
144144
path: '/bar',
145145
replace: false,

0 commit comments

Comments
 (0)