Should js Cannot read property ‘should’ of null December 7, 2023 by Tarik I had the same problem. I solved it by using: (err === null).should.be.true;