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

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

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -