Debian Codegraph @

packages/babel-helper-validator-option/test/find-suggestion.spec.js

raw symbols SCIP
1 import { findSuggestion } from "../lib/index.js";
2
3 describe("findSuggestion", function () {
4 test.each([
5 ["cat", ["cow", "dog", "pig"], "cow"],
6 ["uglifyjs", [], undefined],
7 ])("findSuggestion(%p, %p) returns %p", (str, arr, expected) => {
8 expect(findSuggestion(str, arr)).toBe(expected);
9 });
10 });