I am trying to test a function that when an undefined variable is passed in, it should not throw TypeError:
describe('myFunction', function () {
it('should not throw TypeError =>', function () {
var x = undefined;
chai.expect(myFunction(x)).to.not.throw(TypeError)
}):
});
But it still throws the error.