File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -927,8 +927,15 @@ describe('Onyx', () => {
927
927
expect ( collectionCallback ) . toHaveBeenCalledTimes ( 2 ) ;
928
928
expect ( collectionCallback ) . toHaveBeenNthCalledWith ( 1 , null , undefined ) ;
929
929
expect ( collectionCallback ) . toHaveBeenNthCalledWith ( 2 , { [ itemKey ] : { a : 'a' } } ) ;
930
- expect ( testCallback ) . toHaveBeenNthCalledWith ( 1 , 'taco' , ONYX_KEYS . TEST_KEY ) ;
931
- expect ( otherTestCallback ) . toHaveBeenNthCalledWith ( 1 , 'pizza' , ONYX_KEYS . OTHER_TEST ) ;
930
+
931
+ expect ( testCallback ) . toHaveBeenCalledTimes ( 2 ) ;
932
+ expect ( testCallback ) . toHaveBeenNthCalledWith ( 1 , null , undefined ) ;
933
+ expect ( testCallback ) . toHaveBeenNthCalledWith ( 2 , 'taco' , ONYX_KEYS . TEST_KEY ) ;
934
+
935
+ expect ( otherTestCallback ) . toHaveBeenCalledTimes ( 2 ) ;
936
+ // We set an initial value of 42 for ONYX_KEYS.OTHER_TEST in Onyx.init()
937
+ expect ( otherTestCallback ) . toHaveBeenNthCalledWith ( 1 , 42 , ONYX_KEYS . OTHER_TEST ) ;
938
+ expect ( otherTestCallback ) . toHaveBeenNthCalledWith ( 2 , 'pizza' , ONYX_KEYS . OTHER_TEST ) ;
932
939
Onyx . disconnect ( connectionIDs ) ;
933
940
} ) ,
934
941
) ;
You can’t perform that action at this time.
0 commit comments