TypeError: expect(…).to.be is not a function

前端 未结 1 777
遇见更好的自我
遇见更好的自我 2020-12-29 19:07

I am configuring my Karma amd mocha framework with grunt in my project. When I am running karma start I am getting below-mentioned error.

I am getting this error in

相关标签:
1条回答
  • 2020-12-29 19:38

    You need to write expect(true).to.be.equal(true) the be is a chain (object) not a function. Or you could write:

    expect(true).to.be.true;
    expect(false).to.be.false;
    
    0 讨论(0)
提交回复
热议问题