Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+8
-1
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, test } from "vitest";
|
||||
import { canTransitionLeadStatus, type LeadStatus } from "./leadService.server";
|
||||
import { canTransitionLeadStatus, LEAD_BULK_MAX_ENTRIES, normalizeBulkLeadIds, type LeadStatus } from "./leadService.server";
|
||||
|
||||
describe("lead status workflow", () => {
|
||||
test.each<[LeadStatus, LeadStatus]>([
|
||||
@@ -25,4 +25,11 @@ describe("lead status workflow", () => {
|
||||
test("allows idempotent status writes", () => {
|
||||
expect(canTransitionLeadStatus("converted", "converted")).toBe(true);
|
||||
});
|
||||
|
||||
test("bounds and deduplicates bulk lead IDs", () => {
|
||||
expect(normalizeBulkLeadIds([" lead-a ", "lead-a", "", "lead-b"])).toEqual(["lead-a", "lead-b"]);
|
||||
expect(() => normalizeBulkLeadIds(Array.from({ length: LEAD_BULK_MAX_ENTRIES + 1 }, (_, index) => `lead-${index}`))).toThrow(
|
||||
"foundation.mass_action_exceeds_limit"
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user