Update Healer Man server
This commit is contained in:
1 parent
f8314e7de1
commit
1fedb9368d
76 files changed
+20556
-2523
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { partyTalentAllocationPlan } from "./partyTalents";
|
||||
import { runtimePartyTalentPlan } from "./partyTalentRuntime";
|
||||
import { partyTalentSelections } from "./partyTalentUi";
|
||||
import { loadTalentUiCatalog } from "./talentUiCatalog";
|
||||
|
||||
@@ -7,17 +7,10 @@ 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");
|
||||
const source = runtimePartyTalentPlan("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,
|
||||
})));
|
||||
expect(projected.map((selection) => selection.nodeId)).toEqual(source);
|
||||
expect(projected.every((selection) => selection.rank >= 1 && selection.description.length > 0)).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user