Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
marandaneto committed Oct 19, 2020
commit 8a1462056780ba90b2de4bed2810fd43831392d4
4 changes: 3 additions & 1 deletion dart/lib/src/noop_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:http/src/client.dart';

import 'client.dart';
import 'protocol.dart';
import 'scope.dart';

class NoOpSentryClient implements SentryClient {
NoOpSentryClient._();
Expand Down Expand Up @@ -32,7 +33,7 @@ class NoOpSentryClient implements SentryClient {
Future.value(SentryId.empty());

@override
Future<SentryId> captureException(throwable, {stackTrace}) =>
Future<SentryId> captureException(throwable, {stackTrace, scope}) =>
Future.value(SentryId.empty());

@override
Expand All @@ -41,6 +42,7 @@ class NoOpSentryClient implements SentryClient {
SeverityLevel level = SeverityLevel.info,
String template,
List<dynamic> params,
Scope scope,
}) =>
Future.value(SentryId.empty());

Expand Down
4 changes: 2 additions & 2 deletions dart/test/test_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ Future testCaptureException(
} else {
data = json.decode(utf8.decode(body)) as Map<String, dynamic>;
}
final Map<String, dynamic> stacktrace =
final stacktrace =
data.remove('stacktrace') as Map<String, dynamic>;

expect(stacktrace['frames'], const TypeMatcher<List>());
expect(stacktrace['frames'], isNotEmpty);

final Map<String, dynamic> topFrame =
final topFrame =
(stacktrace['frames'] as Iterable<dynamic>).last as Map<String, dynamic>;
expect(topFrame.keys, <String>[
'abs_path',
Expand Down