I have the following code:
const assert = require("assert");
describe("Test cases", () => {
it ("1 != 2", () => {
assert.equal(1, 2);
});
it ("2 = 2", () => {
assert.equal(2, 2);
});
it ("3 != 2", () => {
assert.equal(3, 2);
});
});
I suspect the mocha report says: 1 passing / 2 failing. BUT it stops running after first error.
What i'm doing wrong and how to don't kill mocha process after first fail.
Thanks for advance.
Aucun commentaire:
Enregistrer un commentaire