Looking to implement something I came across that resembles this:
let item1 = {value:5};
let item2 = {value:5};
// Should result in true.
expect(item1).toEqual(item2);
Unfortunately, an error is being thrown:
EXCEPTION: Error in :0:0 caused by: expect is not defined
I have heard that these functions are from Jasmine and supposedly don't require importing as they are global in Angular RC5. Is this accurate? If not, what is the correct way to import them?