Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
amortemousque committed Oct 20, 2022
1 parent 9018f9d commit 94cda68
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/core/src/domain/telemetry/telemetry.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ describe('telemetry', () => {

expect(notifySpy).not.toHaveBeenCalled()
})

it('should not notify configuration when telemetrySampleRate is 0', () => {
const { notifySpy } = startAndSpyTelemetry({ telemetrySampleRate: 0, telemetryConfigurationSampleRate: 100 })

addTelemetryConfiguration({})

expect(notifySpy).not.toHaveBeenCalled()
})
})

it('should contains feature flags', () => {
Expand Down

0 comments on commit 94cda68

Please sign in to comment.