javascript - Jasmine false positive with {} and [] in jasmine-node -
for reason jasmine's...
expect({}).toequal([]);
is reporting true (but different types). how do check jasmine?
you can move equality check within expect
clause:
a = {} b = [] expect(a === b).tobetruthy();
Comments
Post a Comment