mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
test(gateway): align outbound session assertion shape
This commit is contained in:
@@ -392,7 +392,10 @@ describe("gateway send mirroring", () => {
|
||||
|
||||
expect(mocks.deliverOutboundPayloads).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
agentId: "work",
|
||||
session: expect.objectContaining({
|
||||
agentId: "work",
|
||||
key: "agent:work:slack:channel:resolved",
|
||||
}),
|
||||
mirror: expect.objectContaining({
|
||||
sessionKey: "agent:work:slack:channel:resolved",
|
||||
agentId: "work",
|
||||
@@ -414,7 +417,10 @@ describe("gateway send mirroring", () => {
|
||||
|
||||
expect(mocks.deliverOutboundPayloads).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
agentId: "work",
|
||||
session: expect.objectContaining({
|
||||
agentId: "work",
|
||||
key: "agent:work:slack:channel:c1",
|
||||
}),
|
||||
mirror: expect.objectContaining({
|
||||
sessionKey: "agent:work:slack:channel:c1",
|
||||
agentId: "work",
|
||||
@@ -437,7 +443,10 @@ describe("gateway send mirroring", () => {
|
||||
|
||||
expect(mocks.deliverOutboundPayloads).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
agentId: "work",
|
||||
session: expect.objectContaining({
|
||||
agentId: "work",
|
||||
key: "agent:main:slack:channel:c1",
|
||||
}),
|
||||
mirror: expect.objectContaining({
|
||||
sessionKey: "agent:main:slack:channel:c1",
|
||||
agentId: "work",
|
||||
@@ -460,7 +469,10 @@ describe("gateway send mirroring", () => {
|
||||
|
||||
expect(mocks.deliverOutboundPayloads).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
agentId: "work",
|
||||
session: expect.objectContaining({
|
||||
agentId: "work",
|
||||
key: "agent:work:slack:channel:c1",
|
||||
}),
|
||||
mirror: expect.objectContaining({
|
||||
sessionKey: "agent:work:slack:channel:c1",
|
||||
agentId: "work",
|
||||
|
||||
@@ -63,7 +63,7 @@ describe("sendMessage", () => {
|
||||
|
||||
expect(mocks.deliverOutboundPayloads).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
agentId: "work",
|
||||
session: expect.objectContaining({ agentId: "work" }),
|
||||
channel: "telegram",
|
||||
to: "123456",
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user