mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 21:04:31 +00:00
test(signal): dedupe receive event fixtures and add mention clamp case
This commit is contained in:
@@ -33,3 +33,17 @@ export function createBaseSignalEventHandlerDeps(
|
||||
...overrides,
|
||||
};
|
||||
}
|
||||
|
||||
export function createSignalReceiveEvent(envelopeOverrides: Record<string, unknown> = {}) {
|
||||
return {
|
||||
event: "receive",
|
||||
data: JSON.stringify({
|
||||
envelope: {
|
||||
sourceNumber: "+15550001111",
|
||||
sourceName: "Alice",
|
||||
timestamp: 1700000000000,
|
||||
...envelopeOverrides,
|
||||
},
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user