Chai deve é indefinido
Eu instalei o Mocha e o Chai.
No meu teste de unidade:
import {expect, should} from "chai";
describe("array", function () {
it("has length of 1", function (done) {
var arr = ["B"];
expect(arr).have.lengthOf(1);
arr.should.have.lengthOf(1);
});
});
expect
funciona como esperado, masshould
está indefinido.
Por quê?