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 - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -