TypeScript unit testing–Checking to see if the values of two arrays are equal
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 … [Read more…]