From 4edba932d2ee47ba6c6d9cb2bb7635ede8e062d4 Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Thu, 20 Feb 2025 22:15:11 +0100 Subject: [PATCH] fix tests --- flutter/example/integration_test/web_sdk_test.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/flutter/example/integration_test/web_sdk_test.dart b/flutter/example/integration_test/web_sdk_test.dart index 006a52e80..48ecc2044 100644 --- a/flutter/example/integration_test/web_sdk_test.dart +++ b/flutter/example/integration_test/web_sdk_test.dart @@ -107,11 +107,10 @@ void main() { expect((header['sdk'] as Map)['name'], 'sentry.dart.flutter'); - final item = (envelope[1] as List).first as List; - 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; + final item = (envelope[1] as List).first as List; + final itemPayload = + json.decode(utf8.decoder.convert(item[1] as List)) + as Map; final jsEventJson = (itemPayload).map((key, value) { return MapEntry(key.toString(), value as dynamic);