feat: unified command ack messages with expectations (6.3)
This commit is contained in:
1 parent
a35587e2ef
commit
3408c9dc77
3 files changed
+35
-2
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
import { formatCommandAckMessage } from "../src/github/commandFeedback.js";
|
||||
|
||||
test("recheck ack names the requester and sets expectations", () => {
|
||||
const message = formatCommandAckMessage("alice", "ghbot bot", "/recheck");
|
||||
assert.match(message, /@alice/);
|
||||
assert.match(message, /`\/recheck`/);
|
||||
assert.match(message, /running now/);
|
||||
});
|
||||
|
||||
test("conflict ack states the time budget and push guard", () => {
|
||||
const message = formatCommandAckMessage("bob", "ghbot bot", "/conflict");
|
||||
assert.match(message, /45 minutes/);
|
||||
assert.match(message, /nothing is pushed unless every guard passes/);
|
||||
});
|
||||
Reference in new issue
Block a user