UNPKG

data-matching

Version:

Matches a data object against a reference value

11 lines (9 loc) 296 B
/* mocha style test (jest runs this without problems) */ var assert = require("assert"); describe("Array", () => { describe("#indexOf()", () => { it("should return -1 when the value is not present", () => { assert.equal(-1, [1, 2, 3].indexOf(4)); }); }); });