Skip to content

Commit 732755a

Browse files
committed
consolidate tests
1 parent b50a902 commit 732755a

File tree

2 files changed

+10
-21
lines changed

2 files changed

+10
-21
lines changed

apps/sim/lib/core/idempotency/service.webhook-key.test.ts renamed to apps/sim/lib/core/idempotency/service.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ import { describe, expect, it } from 'vitest'
66
import { IdempotencyService } from '@/lib/core/idempotency/service'
77

88
describe('IdempotencyService.createWebhookIdempotencyKey', () => {
9+
it('uses Greenhouse-Event-ID when present', () => {
10+
const key = IdempotencyService.createWebhookIdempotencyKey(
11+
'wh_1',
12+
{ 'greenhouse-event-id': 'evt-gh-99' },
13+
{},
14+
'greenhouse'
15+
)
16+
expect(key).toBe('wh_1:evt-gh-99')
17+
})
18+
919
it('prefers svix-id for Resend / Svix duplicate delivery deduplication', () => {
1020
const key = IdempotencyService.createWebhookIdempotencyKey(
1121
'wh_1',

apps/sim/lib/core/idempotency/webhook-key.test.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)