EatTheBlocks Forum

Question about javascript

Hello everyone,

I hope you are all well !

Does anyone know what assert.fail() and assert.include() do in javascript?

Thank you

Take care

assert.include() I dont know but assert.fail() will throw an error. It’s to intentionally make your test fail, for example if it reach a branch of the test that it shouldnt reach. More info here in the docs of NodeJS.

Thank you so much for your answer

1 Like