Closed
Description
The function assert.isFunction
is failing on AsyncFunction on v5.0.0, while on v4.3.10 it was working
A simple scenario is the one below:
describe("Scenario", ()=>{
it("Should be a function", ()=>{
async function foo() {
console.log("Hello World");
}
assert.isFunction(foo); // fails on v5.0.0
});
});
For now I changed my tests to use the JS builtin typeof
, like:
assert.strictEqual(typeof foo, "function");`
Metadata
Metadata
Assignees
Labels
No labels