fix(test): update test for renamed getExecApprovalActionIdPrefix
This commit is contained in:
parent
1b0526d9c4
commit
044b60bf2d
@ -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");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user