forked from phenom/healer-man
Release Healer Man 0.1.7
This commit is contained in:
1 parent
b12fb84859
commit
eca6b5db9b
99 files changed
+1931
-150
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { partyTalentAllocationPlan } from "./partyTalents";
|
||||
import { partyTalentSelections } from "./partyTalentUi";
|
||||
import { loadTalentUiCatalog } from "./talentUiCatalog";
|
||||
|
||||
describe("party talent UI projection", () => {
|
||||
it("reconstructs the generated runtime plan from one class shard", async () => {
|
||||
const catalog = await loadTalentUiCatalog("warrior");
|
||||
const projected = partyTalentSelections(catalog, "warrior", "Protection");
|
||||
const source = partyTalentAllocationPlan("warrior", "Protection");
|
||||
|
||||
expect(projected).toHaveLength(71);
|
||||
expect(projected.map((selection) => ({
|
||||
nodeId: selection.nodeId,
|
||||
rank: selection.rank,
|
||||
description: selection.description,
|
||||
}))).toEqual(source.map((selection) => ({
|
||||
nodeId: selection.nodeId,
|
||||
rank: selection.rank,
|
||||
description: selection.description,
|
||||
})));
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user