Jasmine JavaScript Testing – toBe vs toEqual
For primitive types (e.g. numbers, booleans, strings, etc.), there is no difference between toBe and toEqual; either one will work for 5, true, or “the cake is a lie”. To understand the difference between toBe and toEqual, let’s imagine three objects. var a = { bar: ‘baz’ }, b = { foo: a }, c … Read more