updating buff and debuff icons. separated COA classes from WoW classes on the character creation screen
This commit is contained in:
@@ -163,7 +163,7 @@ describe("shell store", () => {
|
||||
expect(useShellStore.getState().draft.gender).toBe("male");
|
||||
});
|
||||
|
||||
it("resets the creator to a valid draft when switching between WoW and RoM", () => {
|
||||
it("resets the creator to a valid draft when switching among WoW, RoM, and CoA", () => {
|
||||
useShellStore.getState().openCreator();
|
||||
useShellStore.getState().updateDraft({ name: "Category Keeper", categoryId: "rom" });
|
||||
expect(useShellStore.getState().draft).toMatchObject({
|
||||
@@ -179,6 +179,16 @@ describe("shell store", () => {
|
||||
classId: "rom-champion",
|
||||
gender: "male",
|
||||
});
|
||||
useShellStore.getState().updateDraft({ categoryId: "coa" });
|
||||
expect(useShellStore.getState().draft).toMatchObject({
|
||||
name: "Categorykeep",
|
||||
categoryId: "coa",
|
||||
raceId: "human",
|
||||
classId: "barbarian",
|
||||
gender: "female",
|
||||
});
|
||||
useShellStore.getState().updateDraft({ classId: "priest" });
|
||||
expect(useShellStore.getState().draft.classId).toBe("barbarian");
|
||||
useShellStore.getState().updateDraft({ categoryId: "wow" });
|
||||
expect(useShellStore.getState().draft).toMatchObject({
|
||||
name: "Categorykeep",
|
||||
|
||||
Reference in New Issue
Block a user