mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-14 01:30:44 +00:00
test: tighten line group context assertions
This commit is contained in:
@@ -107,13 +107,9 @@ describe("buildLineMessageContext", () => {
|
||||
account,
|
||||
commandAuthorized: true,
|
||||
});
|
||||
expect(context).not.toBeNull();
|
||||
if (!context) {
|
||||
throw new Error("context missing");
|
||||
}
|
||||
|
||||
expect(context.ctxPayload.OriginatingTo).toBe("line:group:group-1");
|
||||
expect(context.ctxPayload.To).toBe("line:group:group-1");
|
||||
expect(context?.ctxPayload.OriginatingTo).toBe("line:group:group-1");
|
||||
expect(context?.ctxPayload.To).toBe("line:group:group-1");
|
||||
});
|
||||
|
||||
it("routes group postback replies to the group id", async () => {
|
||||
|
||||
Reference in New Issue
Block a user