Slide 46
Slide 46 text
Referential equality.
Just because they’re basically the same, it doesn’t mean they’re
actually the same.
Sure, 1
===
1 and ‘string’
===
‘string’.
But, { foo: 1 }
!==
{ foo: 1 } and [1,2,3]
!==
[1,2,3].
This is where toBe, toEqual, and toStrictEqual all come in.