@nknahom/lotide
Version:
Lotide is mini clone of the Lodash (https://lodash.com) library for learning JavaScript. What is Lodash? Lodash is a library that makes JavaScript easier by taking the hassle out of working with arrays, numbers, objects, strings, etc.
14 lines (12 loc) • 402 B
JavaScript
const assert = require("chai").assert;
const findKeyByValue = require("../findKeyByValue");
describe("#findKeyByValue", () => {
it('should return "dram" for "The Wire"', () => {
const bestTVShowsByGenre = {
sci_fi: "The Expanse",
comedy: "Brooklyn Nine-Nine",
drama: "The Wire",
};
assert.strictEqual(findKeyByValue(bestTVShowsByGenre, "The Wire"), "drama");
});
});