feat : custom stats with double price in commission
This commit is contained in:
@@ -16,6 +16,14 @@ const request: CommissionRequest = {
|
||||
};
|
||||
|
||||
describe("commission draft recovery", () => {
|
||||
it("preserves separate character stats including an enabled but unfinished field", () => {
|
||||
const custom = structuredClone(request);
|
||||
custom.teams[0].members[0].customStats = "ATK 2000\nCRIT Rate 70%";
|
||||
custom.teams[0].members[1].customStats = "";
|
||||
custom.weapons[0].customStats = "CRIT Rate 70%";
|
||||
custom.constellations[0].customStats = "";
|
||||
expect(restoreCommissionDraft(serializeCommissionDraft(custom, now), catalog, now)).toEqual(custom);
|
||||
});
|
||||
it("preserves a partially completed request and its refinements", () => {
|
||||
expect(restoreCommissionDraft(serializeCommissionDraft(request, now), catalog, now)).toEqual(request);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user