MCPcopy Index your code
hub / github.com/simstudioai/sim / match

Function match

apps/sim/lib/webhooks/providers/twilio.test.ts:151–160  ·  view source on GitHub ↗
(triggerId: string, body: Record<string, unknown>)

Source from the content-addressed store, hash-verified

149
150 describe('matchEvent', () => {
151 const match = (triggerId: string, body: Record<string, unknown>) =>
152 twilioHandler.matchEvent!({
153 body,
154 request: new Request('http://localhost/test') as never,
155 rawBody: '',
156 requestId: 'r1',
157 providerConfig: { triggerId },
158 webhook: {},
159 workflow: {},
160 })
161
162 const inbound = { MessageSid: 'SM1', From: '+1', Body: 'hi', SmsStatus: 'received' }
163 const status = { MessageSid: 'SM1', MessageStatus: 'delivered', SmsStatus: 'delivered' }

Callers 1

twilio.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected