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

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

android - MPAndroidChart - How to add Annotations or images to the chart -