Skip to content

Commit

Permalink
tdd for realz
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Dec 20, 2024
1 parent 4a79285 commit aa147e9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/__tests__/extensions/replay/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,26 @@ describe('config', () => {
describe('payloadHostDenyList', () => {
it('uses a default when none provided', () => {
const networkOptions = buildNetworkRequestOptions(defaultConfig(), {})
expect(networkOptions.payloadHostDenyList).toEqual(['.lr-ingest.io', '.ingest.sentry.io'])
expect(networkOptions.payloadHostDenyList).toEqual([
'.lr-ingest.io',
'.ingest.sentry.io',
'.clarity.ms',
'analytics.google.com',
])
})

it('adds to the default when deny list is provided', () => {
const networkOptions = buildNetworkRequestOptions(defaultConfig(), {
payloadHostDenyList: ['wat', 'huh'],
})
expect(networkOptions.payloadHostDenyList).toEqual(['wat', 'huh', '.lr-ingest.io', '.ingest.sentry.io'])
expect(networkOptions.payloadHostDenyList).toEqual([
'wat',
'huh',
'.lr-ingest.io',
'.ingest.sentry.io',
'.clarity.ms',
'analytics.google.com',
])
})
})
})
Expand Down

0 comments on commit aa147e9

Please sign in to comment.