fix(test): update test for renamed getExecApprovalActionIdPrefix

This commit is contained in:
Kieran Klukas 2026-01-26 12:30:16 -05:00
parent 1b0526d9c4
commit 044b60bf2d
No known key found for this signature in database

View File

@ -1,7 +1,7 @@
import { describe, expect, it } from "vitest"; import { describe, expect, it } from "vitest";
import { import {
parseApprovalValue, parseApprovalValue,
getExecApprovalActionId, getExecApprovalActionIdPrefix,
SlackExecApprovalHandler, SlackExecApprovalHandler,
type ExecApprovalRequest, type ExecApprovalRequest,
} from "./exec-approvals.js"; } from "./exec-approvals.js";
@ -15,9 +15,9 @@ function encodeApprovalValue(
return ["execapproval", encodeURIComponent(approvalId), action].join("|"); return ["execapproval", encodeURIComponent(approvalId), action].join("|");
} }
describe("getExecApprovalActionId", () => { describe("getExecApprovalActionIdPrefix", () => {
it("returns the action ID", () => { it("returns the action ID prefix", () => {
expect(getExecApprovalActionId()).toBe("clawdbot_execapproval"); expect(getExecApprovalActionIdPrefix()).toBe("clawdbot_execapproval");
}); });
}); });