Loading...
Loading...
Compare original and translation side by side
// 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);
});
});
});// 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);
});
});
});describeitbeforeafterbeforeEachafterEachdescribeitbeforeafterbeforeEachafterEachasync/awaititit("should save user", async function () {
const user = new User("tobi");
await user.save();
});itasync/awaitit("should save user", async function () {
const user = new User("tobi");
await user.save();
});.only.skipit.only(...)nyc() => {}this.timeout()this.slow()this.only.skipit.only(...)() => {}this.timeout()this.slow()this