Skip to content
Merged
Prev Previous commit
tets
  • Loading branch information
waleedlatif1 committed Apr 7, 2026
commit 1ccf2581b223367f724806454d07a8f48b2102ab
25 changes: 2 additions & 23 deletions apps/sim/lib/webhooks/providers/zoom.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,8 @@ describe('Zoom webhook provider', () => {
expect(validateZoomSignature(secret, hashA, timestamp, rawB)).toBe(false)
})

it('extractIdempotencyId prefers meeting uuid', () => {
const zid = zoomHandler.extractIdempotencyId!({
event: 'meeting.started',
event_ts: 123,
payload: { object: { uuid: 'u1', id: 55 } },
})
expect(zid).toBe('zoom:meeting.started:123:u1')
})

it('extractIdempotencyId uses participant identity when available', () => {
const zid = zoomHandler.extractIdempotencyId!({
event: 'meeting.participant_joined',
event_ts: 123,
payload: {
object: {
uuid: 'meeting-uuid',
participant: {
user_id: 'participant-1',
},
},
},
})
expect(zid).toBe('zoom:meeting.participant_joined:123:participant-1')
it('does not implement extractIdempotencyId (x-zm-request-id handled at service level)', () => {
expect(zoomHandler.extractIdempotencyId).toBeUndefined()
})

it('formatInput passes through the Zoom webhook envelope', async () => {
Expand Down
Loading