Should js Cannot read property 'should' of null

前端 未结 5 1626
执念已碎
执念已碎 2021-02-06 23:35

i try to use the testing tool mocha in node. Consider the following test scenario

var requirejs = require(\'requirejs\');

requirejs.config({
    //Pass the top-         


        
5条回答
  •  说谎
    说谎 (楼主)
    2021-02-07 00:18

    I had the same problem. I solved it by using:

    (err === null).should.be.true;

提交回复
热议问题