portfolio/test/config/Play.spec.ts

20 lines
448 B
TypeScript
Raw Normal View History

/**
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import { describe, it, expect } from "vitest";
import { Play } from "../../src/config/Play";
describe("play objects", () => {
it("should have unique names", () => {
expect.assertions(1);
const set = new Set(
Play.map((p) => {
return p.name;
}),
);
expect(set, "are not unique").toHaveLength(Play.length);
});
});