@@ -39,7 +39,7 @@ test('contains all the data', () => {
39
39
40
40
test ( 'extract refs from document' , ( ) => {
41
41
const [ noRefsDoc , refs ] = extractRefs ( doc . data ( ) )
42
- expect ( noRefsDoc . ref ) . toEqual ( docRef . path )
42
+ expect ( noRefsDoc . ref ) . toBe ( docRef . path )
43
43
expect ( refs ) . toEqual ( {
44
44
ref : docRef
45
45
} )
@@ -73,7 +73,7 @@ test('extract object nested refs from document', () => {
73
73
ref : docRef
74
74
}
75
75
} )
76
- expect ( noRefsDoc . obj . ref ) . toEqual ( docRef . path )
76
+ expect ( noRefsDoc . obj . ref ) . toBe ( docRef . path )
77
77
expect ( refs ) . toEqual ( {
78
78
'obj.ref' : docRef
79
79
} )
@@ -87,7 +87,7 @@ test('extract deep object nested refs from document', () => {
87
87
}
88
88
}
89
89
} )
90
- expect ( noRefsDoc . obj . nested . ref ) . toEqual ( docRef . path )
90
+ expect ( noRefsDoc . obj . nested . ref ) . toBe ( docRef . path )
91
91
expect ( refs ) . toEqual ( {
92
92
'obj.nested.ref' : docRef
93
93
} )
@@ -103,9 +103,9 @@ test('extracts refs from array', async () => {
103
103
const [ noRefsDoc , refs ] = extractRefs ( {
104
104
arr : [ docRef , docRef2 , docRef ]
105
105
} )
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 )
109
109
expect ( refs ) . toEqual ( {
110
110
'arr.0' : docRef ,
111
111
'arr.1' : docRef2 ,
0 commit comments