is-is-odd
Version:
check if a function is is-odd
28 lines (19 loc) • 539 B
JavaScript
// wengwengweng
;
require("mocha");
const assert = require("assert");
const isOdd = require("is-odd");
const isIsOdd = require("./");
describe("isOdd", function() {
it("should return true if a function is is-odd:", function() {
assert(isIsOdd(isOdd));
});
it("should return false if a function is not is-odd", function() {
assert(!isIsOdd(function() {}));
});
it("should return false even if a function is in disguise", function() {
assert(!isIsOdd(function() {
console.log("I'm is-odd");
}));
});
});