mommy/test/mommy.spec.ts
Naomi Carrigan e53db48154
All checks were successful
Node.js CI / Lint and Test (push) Successful in 41s
feat: initial prototype
2025-03-06 17:41:16 -08:00

21 lines
531 B
TypeScript

/**
* @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);
});
});