Skip to content

Commit

Permalink
test: use toBe instead of toEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Apr 15, 2018
1 parent 6bf5d48 commit 57e35d5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test('contains all the data', () => {

test('extract refs from document', () => {
const [noRefsDoc, refs] = extractRefs(doc.data())
expect(noRefsDoc.ref).toEqual(docRef.path)
expect(noRefsDoc.ref).toBe(docRef.path)
expect(refs).toEqual({
ref: docRef
})
Expand Down Expand Up @@ -73,7 +73,7 @@ test('extract object nested refs from document', () => {
ref: docRef
}
})
expect(noRefsDoc.obj.ref).toEqual(docRef.path)
expect(noRefsDoc.obj.ref).toBe(docRef.path)
expect(refs).toEqual({
'obj.ref': docRef
})
Expand All @@ -87,7 +87,7 @@ test('extract deep object nested refs from document', () => {
}
}
})
expect(noRefsDoc.obj.nested.ref).toEqual(docRef.path)
expect(noRefsDoc.obj.nested.ref).toBe(docRef.path)
expect(refs).toEqual({
'obj.nested.ref': docRef
})
Expand All @@ -103,9 +103,9 @@ test('extracts refs from array', async () => {
const [noRefsDoc, refs] = extractRefs({
arr: [docRef, docRef2, docRef]
})
expect(noRefsDoc.arr[0]).toEqual(docRef.path)
expect(noRefsDoc.arr[1]).toEqual(docRef2.path)
expect(noRefsDoc.arr[2]).toEqual(docRef.path)
expect(noRefsDoc.arr[0]).toBe(docRef.path)
expect(noRefsDoc.arr[1]).toBe(docRef2.path)
expect(noRefsDoc.arr[2]).toBe(docRef.path)
expect(refs).toEqual({
'arr.0': docRef,
'arr.1': docRef2,
Expand Down

0 comments on commit 57e35d5

Please sign in to comment.