Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Feb 20, 2025
1 parent 1fa8baa commit 4edba93
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions flutter/example/integration_test/web_sdk_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,10 @@ void main() {
expect((header['sdk'] as Map<Object?, Object?>)['name'],
'sentry.dart.flutter');

final item = (envelope[1] as List<Object?>).first as List<Object?>;
final itemPayloadJs = (item[1] as JSArray).toDart;
final itemPayload = json.decode(utf8.decoder.convert(itemPayloadJs
.map((el) => int.parse(el.dartify().toString()))
.toList())) as Map<Object?, Object?>;
final item = (envelope[1] as List).first as List<Object?>;
final itemPayload =
json.decode(utf8.decoder.convert(item[1] as List<int>))
as Map<Object?, Object?>;

final jsEventJson = (itemPayload).map((key, value) {
return MapEntry(key.toString(), value as dynamic);
Expand Down

0 comments on commit 4edba93

Please sign in to comment.