In Jasmine, you can expect an object toBe another object.
However, this will check to see if the two arrays point to the same reference object. In other words, it will check to see if the arrays point to the same memory address.
Produces this not-very-helpful error message:
Expected [ 42, ‘Forty-Two’ ] to be [ 42, ‘Forty-Two’ ].
toEqual
In order to check that the contents of the two arrays have the same values, use toEqual: