Thursday, 9 June 2016

TypeError: (0 , _chai.expect)(...).toBe is not a function

Error while running Mocha tests:

TypeError: (0 , _chai.expect)(...).toBe is not a function


By doing some research, came to see that I need to use a different syntax while using 'chai'

By changing my test cases as below got worked.

expect(true).to.be.true;
expect(false).to.be.false;

Thank You,
Uma Mahesh.


No comments:

Post a Comment