import {assert, config, expect} from "chai";
import add from "./solution";
// don't truncate assertion diff output
config.truncateThreshold = 0;
describe("add", () => {
it("should add two numbers", () => {
assert.strictEqual(add(1, 2), 3);
// ...or use expect assertions:
expect(add(1, 2)).to.equal(3);
});
});
import {assert, config, expect} from "chai";
import add from "./solution";
// don't truncate assertion diff output
config.truncateThreshold = 0;
describe("add", () => {
it("should add two numbers", () => {
assert.strictEqual(add(1, 2), 3);
// ...or use expect assertions:
expect(add(1, 2)).to.equal(3);
});
});