generated from nhcarrigan/template
All checks were successful
Node.js CI / Lint and Test (push) Successful in 41s
21 lines
531 B
TypeScript
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);
|
|
});
|
|
});
|