generated from nhcarrigan/template
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* @copyright nhcarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { anime } from "../src/assets/anime.js";
|
||||
import { cats } from "../src/assets/cats.js";
|
||||
import { emoji } from "../src/assets/emoji.js";
|
||||
|
||||
const uniqueAnime = new Set(anime.map((art) => {
|
||||
return art.text;
|
||||
}));
|
||||
const uniqueCats = new Set(cats.map((art) => {
|
||||
return art.text;
|
||||
}));
|
||||
const uniqueEmoji = new Set(emoji.map((art) => {
|
||||
return art.text;
|
||||
}));
|
||||
|
||||
describe("assets", () => {
|
||||
it("anime should be unique", () => {
|
||||
expect.assertions(1);
|
||||
expect(uniqueAnime.size, "anime has duplicate art").toBe(anime.length);
|
||||
});
|
||||
|
||||
it("cats should be unique", () => {
|
||||
expect.assertions(1);
|
||||
expect(uniqueCats.size, "cats has duplicate art").toBe(cats.length);
|
||||
});
|
||||
|
||||
it("emoji should be unique", () => {
|
||||
expect.assertions(1);
|
||||
expect(uniqueEmoji.size, "emoji has duplicate art").toBe(emoji.length);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user