@@ -39,7 +39,7 @@ test('contains all the data', () => {
3939
4040test ( 'extract refs from document' , ( ) => {
4141 const [ noRefsDoc , refs ] = extractRefs ( doc . data ( ) )
42- expect ( noRefsDoc . ref ) . toEqual ( docRef . path )
42+ expect ( noRefsDoc . ref ) . toBe ( docRef . path )
4343 expect ( refs ) . toEqual ( {
4444 ref : docRef
4545 } )
@@ -73,7 +73,7 @@ test('extract object nested refs from document', () => {
7373 ref : docRef
7474 }
7575 } )
76- expect ( noRefsDoc . obj . ref ) . toEqual ( docRef . path )
76+ expect ( noRefsDoc . obj . ref ) . toBe ( docRef . path )
7777 expect ( refs ) . toEqual ( {
7878 'obj.ref' : docRef
7979 } )
@@ -87,7 +87,7 @@ test('extract deep object nested refs from document', () => {
8787 }
8888 }
8989 } )
90- expect ( noRefsDoc . obj . nested . ref ) . toEqual ( docRef . path )
90+ expect ( noRefsDoc . obj . nested . ref ) . toBe ( docRef . path )
9191 expect ( refs ) . toEqual ( {
9292 'obj.nested.ref' : docRef
9393 } )
@@ -103,9 +103,9 @@ test('extracts refs from array', async () => {
103103 const [ noRefsDoc , refs ] = extractRefs ( {
104104 arr : [ docRef , docRef2 , docRef ]
105105 } )
106- expect ( noRefsDoc . arr [ 0 ] ) . toEqual ( docRef . path )
107- expect ( noRefsDoc . arr [ 1 ] ) . toEqual ( docRef2 . path )
108- expect ( noRefsDoc . arr [ 2 ] ) . toEqual ( docRef . path )
106+ expect ( noRefsDoc . arr [ 0 ] ) . toBe ( docRef . path )
107+ expect ( noRefsDoc . arr [ 1 ] ) . toBe ( docRef2 . path )
108+ expect ( noRefsDoc . arr [ 2 ] ) . toBe ( docRef . path )
109109 expect ( refs ) . toEqual ( {
110110 'arr.0' : docRef ,
111111 'arr.1' : docRef2 ,
0 commit comments