Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Oct 14, 2024
1 parent 81509e9 commit 8ca2ea2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flutter/test/replay/replay_native_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import 'package:sentry_flutter/sentry_flutter.dart';
import 'package:sentry_flutter/src/event_processor/replay_event_processor.dart';
import 'package:sentry_flutter/src/native/factory.dart';
import 'package:sentry_flutter/src/native/sentry_native_binding.dart';
import 'package:sentry_flutter/src/replay/integration.dart';

import '../mocks.dart';
import '../mocks.mocks.dart';
Expand Down Expand Up @@ -70,6 +71,13 @@ void main() {
await sut.close();
});

test('init adds $replayIntegrationName when replay is enabled', () async {
options.experimental.replay.sessionSampleRate = 0.1;
await sut.init(hub);

expect(options.sdk.integrations, contains(replayIntegrationName));
});

test('init sets $ReplayEventProcessor when error replay is enabled',
() async {
options.experimental.replay.onErrorSampleRate = 0.1;
Expand Down

0 comments on commit 8ca2ea2

Please sign in to comment.