@@ -114,12 +114,12 @@ describe('serializableStateInvariantMiddleware', () => {
114
114
store . dispatch ( dispatchedAction )
115
115
116
116
expect ( getLog ( ) . log ) . toMatchInlineSnapshot ( `
117
- "A non-serializable value was detected in an action, in the path: \`payload\`. Value: Symbol(SOME_CONSTANT)
117
+ "A non-serializable value was detected in an action, in the path: \`payload\`. Value: Symbol(SOME_CONSTANT)
118
118
Take a look at the logic that dispatched this action: Object {
119
119
"payload": Symbol(SOME_CONSTANT),
120
120
"type": "an-action",
121
- }
122
- (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)
121
+ }
122
+ (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)
123
123
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)"
124
124
` )
125
125
} )
@@ -158,7 +158,7 @@ describe('serializableStateInvariantMiddleware', () => {
158
158
store . dispatch ( { type : ACTION_TYPE } )
159
159
160
160
expect ( getLog ( ) . log ) . toMatchInlineSnapshot ( `
161
- "A non-serializable value was detected in the state, in the path: \`testSlice.a\`. Value: Map {}
161
+ "A non-serializable value was detected in the state, in the path: \`testSlice.a\`. Value: Map {}
162
162
Take a look at the reducer(s) handling this action type: TEST_ACTION.
163
163
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)"
164
164
` )
@@ -219,7 +219,7 @@ describe('serializableStateInvariantMiddleware', () => {
219
219
220
220
// since default options are used, the `entries` function in `serializableObject` will cause the error
221
221
expect ( getLog ( ) . log ) . toMatchInlineSnapshot ( `
222
- "A non-serializable value was detected in the state, in the path: \`testSlice.a.entries\`. Value: [Function entries]
222
+ "A non-serializable value was detected in the state, in the path: \`testSlice.a.entries\`. Value: [Function entries]
223
223
Take a look at the reducer(s) handling this action type: TEST_ACTION.
224
224
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)"
225
225
` )
@@ -266,7 +266,7 @@ describe('serializableStateInvariantMiddleware', () => {
266
266
267
267
// error reported is from a nested class instance, rather than the `entries` function `serializableObject`
268
268
expect ( getLog ( ) . log ) . toMatchInlineSnapshot ( `
269
- "A non-serializable value was detected in the state, in the path: \`testSlice.a.third.bad-map-instance\`. Value: Map {}
269
+ "A non-serializable value was detected in the state, in the path: \`testSlice.a.third.bad-map-instance\`. Value: Map {}
270
270
Take a look at the reducer(s) handling this action type: TEST_ACTION.
271
271
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)"
272
272
` )
@@ -371,14 +371,14 @@ describe('serializableStateInvariantMiddleware', () => {
371
371
} ) . dispatch ( { type : 'test' , meta : { arg : nonSerializableValue } } )
372
372
373
373
expect ( getLog ( ) . log ) . toMatchInlineSnapshot ( `
374
- "A non-serializable value was detected in an action, in the path: \`meta.arg\`. Value: Map {}
374
+ "A non-serializable value was detected in an action, in the path: \`meta.arg\`. Value: Map {}
375
375
Take a look at the logic that dispatched this action: Object {
376
376
"meta": Object {
377
377
"arg": Map {},
378
378
},
379
379
"type": "test",
380
- }
381
- (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)
380
+ }
381
+ (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)
382
382
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)"
383
383
` )
384
384
} )
@@ -503,7 +503,7 @@ describe('serializableStateInvariantMiddleware', () => {
503
503
504
504
// testSlice.b.d was not covered in ignoredPaths, so will still log the error
505
505
expect ( getLog ( ) . log ) . toMatchInlineSnapshot ( `
506
- "A non-serializable value was detected in the state, in the path: \`testSlice.b.d\`. Value: Map {}
506
+ "A non-serializable value was detected in the state, in the path: \`testSlice.b.d\`. Value: Map {}
507
507
Take a look at the reducer(s) handling this action type: TEST_ACTION.
508
508
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)"
509
509
` )
0 commit comments