@@ -291,26 +291,26 @@ describe('realmReducer', () => {
291
291
( initialStateValue , eventValue ) => {
292
292
/* prettier-ignore */ // (wants to wrap the name weirdly)
293
293
test ( `${ initialStateValue ?. toString ( ) ?? '[nullish]' } → ${ eventValue ?. toString ( ) ?? '[nullish]' } ` , ( ) => {
294
- const initialState = { ...eg . plusReduxState . realm } ;
295
- // $FlowFixMe[prop-missing]
296
- // $FlowFixMe[class-object-subtyping]
297
- /* $FlowFixMe[incompatible-type]: Trust that the caller passed the
298
- right kind of value for its chosen key. */
299
- initialState [ statePropertyName ] = initialStateValue ;
300
-
301
- const expectedState = { ...initialState } ;
302
- // $FlowFixMe[prop-missing]
303
- /* $FlowFixMe[incompatible-type]: Trust that the caller passed the
304
- right kind of value for its chosen key. */
305
- expectedState [ statePropertyName ] = eventValue ;
306
-
307
- expect (
308
- realmReducer ( initialState , {
309
- type : EVENT ,
310
- event : { ...eventCommon , property : eventPropertyName , value : eventValue } ,
311
- } ) ,
312
- ) . toEqual ( expectedState ) ;
313
- } ) ;
294
+ const initialState = { ...eg . plusReduxState . realm } ;
295
+ // $FlowFixMe[prop-missing]
296
+ // $FlowFixMe[class-object-subtyping]
297
+ /* $FlowFixMe[incompatible-type]: Trust that the caller passed the
298
+ right kind of value for its chosen key. */
299
+ initialState [ statePropertyName ] = initialStateValue ;
300
+
301
+ const expectedState = { ...initialState } ;
302
+ // $FlowFixMe[prop-missing]
303
+ /* $FlowFixMe[incompatible-type]: Trust that the caller passed the
304
+ right kind of value for its chosen key. */
305
+ expectedState [ statePropertyName ] = eventValue ;
306
+
307
+ expect (
308
+ realmReducer ( initialState , {
309
+ type : EVENT ,
310
+ event : { ...eventCommon , property : eventPropertyName , value : eventValue } ,
311
+ } ) ,
312
+ ) . toEqual ( expectedState ) ;
313
+ } ) ;
314
314
} ;
315
315
316
316
describe ( 'twentyFourHourTime / twenty_four_hour_time' , ( ) => {
@@ -333,29 +333,29 @@ describe('realmReducer', () => {
333
333
( initialStateValue , eventValue ) => {
334
334
/* prettier-ignore */ // (wants to wrap the name weirdly)
335
335
test ( `${ initialStateValue ?. toString ( ) ?? '[nullish]' } → ${ eventValue ?. toString ( ) ?? '[nullish]' } ` , ( ) => {
336
- const initialState = { ...eg . plusReduxState . realm } ;
337
- // $FlowFixMe[prop-missing]
338
- // $FlowFixMe[class-object-subtyping]
339
- /* $FlowFixMe[incompatible-type]: Trust that the caller passed the
340
- right kind of value for its chosen key. */
341
- initialState [ statePropertyName ] = initialStateValue ;
342
-
343
- const expectedState = { ...initialState } ;
344
- /* $FlowFixMe[incompatible-type]: Trust that the caller passed the
345
- right kind of value for its chosen key. */
346
- expectedState [ statePropertyName ] = eventValue ;
347
-
348
- expect (
349
- realmReducer ( initialState , {
350
- type : EVENT ,
351
- event : {
352
- ...eventCommon ,
353
- // $FlowFixMe[invalid-computed-prop]
354
- data : { [ eventPropertyName ] : eventValue } ,
355
- } ,
356
- } ) ,
357
- ) . toEqual ( expectedState ) ;
358
- } ) ;
336
+ const initialState = { ...eg . plusReduxState . realm } ;
337
+ // $FlowFixMe[prop-missing]
338
+ // $FlowFixMe[class-object-subtyping]
339
+ /* $FlowFixMe[incompatible-type]: Trust that the caller passed the
340
+ right kind of value for its chosen key. */
341
+ initialState [ statePropertyName ] = initialStateValue ;
342
+
343
+ const expectedState = { ...initialState } ;
344
+ /* $FlowFixMe[incompatible-type]: Trust that the caller passed the
345
+ right kind of value for its chosen key. */
346
+ expectedState [ statePropertyName ] = eventValue ;
347
+
348
+ expect (
349
+ realmReducer ( initialState , {
350
+ type : EVENT ,
351
+ event : {
352
+ ...eventCommon ,
353
+ // $FlowFixMe[invalid-computed-prop]
354
+ data : { [ eventPropertyName ] : eventValue } ,
355
+ } ,
356
+ } ) ,
357
+ ) . toEqual ( expectedState ) ;
358
+ } ) ;
359
359
} ;
360
360
361
361
describe ( 'name / name' , ( ) => {
0 commit comments