Use Assert.isOK and Assert.isNotOK

Tell us what’s happening:
This is the code that I used, but it says that I have passed no tests?
Would anyone be able to assist, maybe I have done something incorrectly?
test(’#isOk, #isNotOk’, function () {
assert.isNotOk(null, ‘null is falsey’);
assert.isOk(“I’m truthy”, ‘A string is truthy’);
assert.isOk(true, ‘true is truthy’);

Your project link(s)


Your browser information:

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

Challenge: Use Assert.isOK and Assert.isNotOK

Link to the challenge:

1 Like

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

I am so sorry I did not intend to ask for a direct solution, I have just tried numerous times and even went to the JavaScript Lesson where they let you know about Falsy values, as it says in the Replit that I have completed the isOk & isNotOk.

1 Like

Your three assertions look good to me. I would make sure you are giving enough time between clicking ‘run’ and submitting the live link for the project. Repl can be touchy.

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