Learn how javascript assertions work isNull isNotNull QA course

Literally stuck on question 1. Got the correct assertions, as checked against the hint. But when I paste the repository into the solution which I’ve committed and click on completed challenge, the test don’t pass? I’ve also tried it on repl.it and get the same.

// running tests All tests should pass. You should choose the correct method for the first assertion -

isNull

vs.

isNotNull

. You should choose the correct method for the second assertion -

isNull

vs.

isNotNull

. // tests completed

code:
suite(‘Unit Tests’, function () {
suite(‘Basic Assertions’, function () {
// #1
test(’#isNull, #isNotNull’, function () {
assert.isNull(null, ‘this is an optional error description - e.g. null is null’);
assert.isNotNull(1, ‘1 is not null’);
});

Hello and welcome to the freeCodeCamp community~!

when I paste the repository into the solution which I’ve committed

A repository link won’t work here - the tests need a link to a live hosted version of the project.

I’ve also tried it on repl.it and get the same.

Are you using the edit link? Or the link to the live view?

Think I’m sorted now with repl.it used the wrong link. Didn’t see the URL on the right with the current editing https://boilerplate-mochachai-1.aboeky.repl.co
I used the (https://repl.it/@aboeky/boilerplate-mochachai-1#tests/1_unit-tests.js) one.

Thanks you made me look in the right place. I’m quite new to GitHub too. Usually use SourceTree at work.

1 Like

Glad I could help! Good luck and happy coding :sunglasses: