For some reason jasmine's...
expect({}).toEqual([]);
is reporting true (but they are different types). How do I do this check with jasmine?
You can move the equality check within the expect clause:
expect
a = {} b = [] expect(a === b).toBeTruthy();