Harden server draft sync (Save & Exit + post-login transfer)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { createFlowStateHasKeys } from "../../lib/create/draftHydrationUtils";
|
||||
|
||||
describe("createFlowStateHasKeys", () => {
|
||||
it("returns false for empty object", () => {
|
||||
expect(createFlowStateHasKeys({})).toBe(false);
|
||||
});
|
||||
|
||||
it("returns true when any key is present", () => {
|
||||
expect(createFlowStateHasKeys({ title: "x" })).toBe(true);
|
||||
expect(createFlowStateHasKeys({ currentStep: "text" })).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user