📜  jest expect to be or toequal - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:27.592000             🧑  作者: Mango

代码示例1
* toBe --> checks if the compared vars have to same memory reference 
(share the same memory location)

* toEqual ---> does a deep comparison of the properties of 
the values (using Object.is).