fix(housekeeping): complete people workflow fidelity
This commit is contained in:
1 parent
25b76437ff
commit
91c9efcbb4
29 files changed
+1365
-290
No files matched your search
@@ -51,8 +51,8 @@ it("preserves all four IP actions and /admin revalidation", async () => {
|
||||
"ip.action",
|
||||
{ action: "add-blacklist", ipAddress: "198.51.100.1", asn: "" },
|
||||
],
|
||||
["ip.action", { action: "delete-whitelist", id: 42 }],
|
||||
["ip.action", { action: "delete-blacklist", id: 99 }],
|
||||
["ip.action", { action: "delete-whitelist", id: "42" }],
|
||||
["ip.action", { action: "delete-blacklist", id: "99" }],
|
||||
]);
|
||||
expect(revalidatePath).toHaveBeenCalledTimes(4);
|
||||
});
|
||||
@@ -62,3 +62,11 @@ it("keeps empty IP input as a no-op after authorization", async () => {
|
||||
expect(requirePermission).toHaveBeenCalledWith("admin.settings.edit");
|
||||
expect(execute).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("preserves an IP rule ID above Number.MAX_SAFE_INTEGER", async () => {
|
||||
await deleteBlacklist(form({ id: "9007199254740993" }));
|
||||
expect(execute).toHaveBeenCalledWith(expect.anything(), "ip.action", {
|
||||
action: "delete-blacklist",
|
||||
id: "9007199254740993",
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user