projectStatsToSampleRates.spec.tsx 399 B

1234567891011
  1. import {projectStatsToSampleRates} from 'sentry/views/settings/project/server-side-sampling/utils/projectStatsToSampleRates';
  2. describe('projectStatsToSampleRates', function () {
  3. it('returns correct sample rates', function () {
  4. expect(projectStatsToSampleRates(TestStubs.Outcomes())).toEqual({
  5. hoursOverLimit: 1,
  6. maxSafeSampleRate: 0.95,
  7. trueSampleRate: 1,
  8. });
  9. });
  10. });