@@ -89,7 +89,6 @@ testRecoil('getNodes', () => {
89
89
expect ( snapshot . getLoadable ( nodesAfterGet [ 0 ] ) . contents ) . toEqual ( 'DEFAULT' ) ;
90
90
91
91
// Test selectors
92
- // $FlowFixMe[incompatible-call]
93
92
const mySelector = selector ( {
94
93
key : 'snapshot getNodes selector' ,
95
94
// $FlowFixMe[missing-local-annot]
@@ -359,7 +358,6 @@ testRecoil('getInfo', () => {
359
358
key : 'snapshot getInfo atom' ,
360
359
default : 'DEFAULT' ,
361
360
} ) ;
362
- // $FlowFixMe[incompatible-call]
363
361
const selectorA = selector ( {
364
362
key : 'getInfo A' ,
365
363
// $FlowFixMe[missing-local-annot]
@@ -392,17 +390,14 @@ testRecoil('getInfo', () => {
392
390
expect ( Array . from ( getInfo ( snapshot , selectorA ) . subscribers . nodes ) ) . toEqual (
393
391
[ ] ,
394
392
) ;
395
- // $FlowFixMe[incompatible-call]
396
393
expect ( getInfo ( snapshot , selectorB ) ) . toMatchObject ( {
397
394
loadable : undefined ,
398
395
isActive : false ,
399
396
isSet : false ,
400
397
isModified : false ,
401
398
type : 'selector' ,
402
399
} ) ;
403
- // $FlowFixMe[incompatible-call]
404
400
expect ( Array . from ( getInfo ( snapshot , selectorB ) . deps ) ) . toEqual ( [ ] ) ;
405
- // $FlowFixMe[incompatible-call]
406
401
expect ( Array . from ( getInfo ( snapshot , selectorB ) . subscribers . nodes ) ) . toEqual (
407
402
[ ] ,
408
403
) ;
@@ -433,7 +428,6 @@ testRecoil('getInfo', () => {
433
428
expect ( Array . from ( getInfo ( snapshot , selectorA ) . subscribers . nodes ) ) . toEqual (
434
429
expect . arrayContaining ( [ selectorB ] ) ,
435
430
) ;
436
- // $FlowFixMe[incompatible-call]
437
431
expect ( getInfo ( snapshot , selectorB ) ) . toMatchObject ( {
438
432
loadable : expect . objectContaining ( {
439
433
state : 'hasValue' ,
@@ -444,11 +438,9 @@ testRecoil('getInfo', () => {
444
438
isModified : false ,
445
439
type : 'selector' ,
446
440
} ) ;
447
- // $FlowFixMe[incompatible-call]
448
441
expect ( Array . from ( getInfo ( snapshot , selectorB ) . deps ) ) . toEqual (
449
442
expect . arrayContaining ( [ myAtom , selectorA ] ) ,
450
443
) ;
451
- // $FlowFixMe[incompatible-call]
452
444
expect ( Array . from ( getInfo ( snapshot , selectorB ) . subscribers . nodes ) ) . toEqual (
453
445
[ ] ,
454
446
) ;
@@ -480,19 +472,16 @@ testRecoil('getInfo', () => {
480
472
expect ( Array . from ( getInfo ( setSnapshot , selectorA ) . subscribers . nodes ) ) . toEqual (
481
473
expect . arrayContaining ( [ selectorB ] ) ,
482
474
) ;
483
- // $FlowFixMe[incompatible-call]
484
475
expect ( getInfo ( setSnapshot , selectorB ) ) . toMatchObject ( {
485
476
loadable : expect . objectContaining ( { state : 'hasValue' , contents : 'SETSET' } ) ,
486
477
isActive : true ,
487
478
isSet : false ,
488
479
isModified : false ,
489
480
type : 'selector' ,
490
481
} ) ;
491
- // $FlowFixMe[incompatible-call]
492
482
expect ( Array . from ( getInfo ( setSnapshot , selectorB ) . deps ) ) . toEqual (
493
483
expect . arrayContaining ( [ myAtom , selectorA ] ) ,
494
484
) ;
495
- // $FlowFixMe[incompatible-call]
496
485
expect ( Array . from ( getInfo ( setSnapshot , selectorB ) . subscribers . nodes ) ) . toEqual (
497
486
[ ] ,
498
487
) ;
@@ -524,7 +513,6 @@ testRecoil('getInfo', () => {
524
513
expect (
525
514
Array . from ( getInfo ( resetSnapshot , selectorA ) . subscribers . nodes ) ,
526
515
) . toEqual ( expect . arrayContaining ( [ selectorB ] ) ) ;
527
- // $FlowFixMe[incompatible-call]
528
516
expect ( getInfo ( resetSnapshot , selectorB ) ) . toMatchObject ( {
529
517
loadable : expect . objectContaining ( {
530
518
state : 'hasValue' ,
@@ -535,12 +523,10 @@ testRecoil('getInfo', () => {
535
523
isModified : false ,
536
524
type : 'selector' ,
537
525
} ) ;
538
- // $FlowFixMe[incompatible-call]
539
526
expect ( Array . from ( getInfo ( resetSnapshot , selectorB ) . deps ) ) . toEqual (
540
527
expect . arrayContaining ( [ myAtom , selectorA ] ) ,
541
528
) ;
542
529
expect (
543
- // $FlowFixMe[incompatible-call]
544
530
Array . from ( getInfo ( resetSnapshot , selectorB ) . subscribers . nodes ) ,
545
531
) . toEqual ( [ ] ) ;
546
532
} ) ;
0 commit comments