@@ -110,12 +110,12 @@ describe('serializableStateInvariantMiddleware', () => {
110110 store . dispatch ( dispatchedAction )
111111
112112 expect ( getLog ( ) . log ) . toMatchInlineSnapshot ( `
113- "A non-serializable value was detected in an action, in the path: \`payload\`. Value: Symbol(SOME_CONSTANT)
113+ "A non-serializable value was detected in an action, in the path: \`payload\`. Value: Symbol(SOME_CONSTANT)
114114 Take a look at the logic that dispatched this action: Object {
115115 "payload": Symbol(SOME_CONSTANT),
116116 "type": "an-action",
117- }
118- (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)
117+ }
118+ (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)
119119 (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)"
120120 ` )
121121 } )
@@ -154,7 +154,7 @@ describe('serializableStateInvariantMiddleware', () => {
154154 store . dispatch ( { type : ACTION_TYPE } )
155155
156156 expect ( getLog ( ) . log ) . toMatchInlineSnapshot ( `
157- "A non-serializable value was detected in the state, in the path: \`testSlice.a\`. Value: Map {}
157+ "A non-serializable value was detected in the state, in the path: \`testSlice.a\`. Value: Map {}
158158 Take a look at the reducer(s) handling this action type: TEST_ACTION.
159159 (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)"
160160 ` )
@@ -215,7 +215,7 @@ describe('serializableStateInvariantMiddleware', () => {
215215
216216 // since default options are used, the `entries` function in `serializableObject` will cause the error
217217 expect ( getLog ( ) . log ) . toMatchInlineSnapshot ( `
218- "A non-serializable value was detected in the state, in the path: \`testSlice.a.entries\`. Value: [Function entries]
218+ "A non-serializable value was detected in the state, in the path: \`testSlice.a.entries\`. Value: [Function entries]
219219 Take a look at the reducer(s) handling this action type: TEST_ACTION.
220220 (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)"
221221 ` )
@@ -262,7 +262,7 @@ describe('serializableStateInvariantMiddleware', () => {
262262
263263 // error reported is from a nested class instance, rather than the `entries` function `serializableObject`
264264 expect ( getLog ( ) . log ) . toMatchInlineSnapshot ( `
265- "A non-serializable value was detected in the state, in the path: \`testSlice.a.third.bad-map-instance\`. Value: Map {}
265+ "A non-serializable value was detected in the state, in the path: \`testSlice.a.third.bad-map-instance\`. Value: Map {}
266266 Take a look at the reducer(s) handling this action type: TEST_ACTION.
267267 (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)"
268268 ` )
@@ -367,14 +367,14 @@ describe('serializableStateInvariantMiddleware', () => {
367367 } ) . dispatch ( { type : 'test' , meta : { arg : nonSerializableValue } } )
368368
369369 expect ( getLog ( ) . log ) . toMatchInlineSnapshot ( `
370- "A non-serializable value was detected in an action, in the path: \`meta.arg\`. Value: Map {}
370+ "A non-serializable value was detected in an action, in the path: \`meta.arg\`. Value: Map {}
371371 Take a look at the logic that dispatched this action: Object {
372372 "meta": Object {
373373 "arg": Map {},
374374 },
375375 "type": "test",
376- }
377- (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)
376+ }
377+ (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)
378378 (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)"
379379 ` )
380380 } )
@@ -499,7 +499,7 @@ describe('serializableStateInvariantMiddleware', () => {
499499
500500 // testSlice.b.d was not covered in ignoredPaths, so will still log the error
501501 expect ( getLog ( ) . log ) . toMatchInlineSnapshot ( `
502- "A non-serializable value was detected in the state, in the path: \`testSlice.b.d\`. Value: Map {}
502+ "A non-serializable value was detected in the state, in the path: \`testSlice.b.d\`. Value: Map {}
503503 Take a look at the reducer(s) handling this action type: TEST_ACTION.
504504 (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)"
505505 ` )
@@ -587,7 +587,9 @@ describe('serializableStateInvariantMiddleware', () => {
587587 it ( 'Should not print a warning if "reducer" takes too long' , ( ) => {
588588 const reducer : Reducer = ( state = 42 , action ) => {
589589 const started = Date . now ( )
590- while ( Date . now ( ) - started < 8 ) { }
590+ while ( Date . now ( ) - started < 8 ) {
591+ /* empty */
592+ }
591593 return state
592594 }
593595
0 commit comments