Loading...
Loading...
Mocha JavaScript test framework. Use for Node.js testing.
npx skill4agent add g1joshi/agent-skills mocha// npm install --save-dev mocha chai
const assert = require("chai").assert;
describe("Array", function () {
describe("#indexOf()", function () {
it("should return -1 when the value is not present", function () {
assert.equal([1, 2, 3].indexOf(4), -1);
});
});
});describeitbeforeafterbeforeEachafterEachasync/awaititit("should save user", async function () {
const user = new User("tobi");
await user.save();
});.only.skipit.only(...)nyc() => {}this.timeout()this.slow()this