forked from phenom/healer-man
Release Healer Man 0.1.22
This commit is contained in:
1 parent
f6f2375145
commit
7f6001723a
144 files changed
+54107
-690
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { TALENT_NODES, TALENT_TREES } from "./talentCatalog";
|
||||
import { loadTalentUiCatalog, talentUiNodesForTree } from "./talentUiCatalog";
|
||||
import { loadedTalentUiCatalog, loadTalentUiCatalog, talentUiArtUrls, talentUiNodesForTree } from "./talentUiCatalog";
|
||||
|
||||
describe("talent UI catalog shards", () => {
|
||||
it.each(["warrior", "barbarian"] as const)("loads only the %s class projection", async (classId) => {
|
||||
@@ -17,4 +17,13 @@ describe("talent UI catalog shards", () => {
|
||||
expect(talentUiNodesForTree(catalog, tree.id).every((node) => node.treeId === tree.id)).toBe(true);
|
||||
}
|
||||
});
|
||||
|
||||
it("returns each Priest talent artwork URL once", async () => {
|
||||
const catalog = await loadTalentUiCatalog("priest");
|
||||
const urls = talentUiArtUrls(catalog);
|
||||
expect(loadedTalentUiCatalog("priest")).toBe(catalog);
|
||||
expect(urls).toHaveLength(new Set(urls).size);
|
||||
expect(urls).toContain("/assets/ui/talents/backgrounds/talent_priest1.png");
|
||||
expect(urls).toContain("/assets/ui/talents/icons/spell_holy_powerwordshield.png");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user