Quality Assurance and Testing with Chai - Test for Truthiness

Tell us what’s happening:
Even though I pass the three tests, it doesn’t say “All tests should pass.” I’m confused about what I’m doing wrong. :sob:

image
image

Your project link(s)

solution: boilerplate-mochachai - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36

Challenge: Quality Assurance and Testing with Chai - Test for Truthiness

Link to the challenge:

assert.isNotTrue()({ value: 'truthy' }, 'Objects are truthy, but are not boolean values');

You closed the isNotTrue method before the arguments. You have assert.isNotTrue()() as the call.

The only way that would work is if isNotTrue returned a function. All the arguments should be passed to isNotTrue (also, the test checks the arguments).

Omg…i can’t
Thanks for pointing that out

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.