/** * @copyright nhcarrigan * @license Naomi's Public License * @author Naomi Carrigan */ /* eslint-disable max-nested-callbacks -- Not sure how to better optimise this. */ import { describe, expect, it } from "vitest"; import { mommy } from "../src/config/mommy.ts"; describe("mommy", () => { it.each(mommy)(`%s should be unique`, (mom) => { expect.assertions(1); const matches = mommy.filter((m) => { return m === mom; }); expect(matches.length, `${mom} is not unique!`).toBeLessThan(2); }); });