cttpie
Version:
Simple Web App for CTT service wrapping
22 lines (19 loc) • 624 B
JavaScript
const assert = require("assert");
const lib = require("../lib");
describe("Array", function() {
describe("#indexOf()", function() {
it("should return -1 when the value is not present", () => {
assert.strictEqual(-1, [1, 2, 3].indexOf(4));
});
});
describe("#length", function() {
it("should return proper length", () => {
assert.strictEqual(3, [1, 2, 3].length);
});
});
});
describe("ENGINES", function() {
it("should not be empty", () => {
assert.strictEqual(true, Object.keys(lib.ENGINES).length > 0);
});
});