Skip to content

Commit e23f413

Browse files
authored
fix: wasm test for dart beta (#2357)
1 parent f2bc034 commit e23f413

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dart/test/test_utils.dart

+7-2
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,13 @@ Future testCaptureException(
158158
'sentry_browser_test.dart.browser_test.dart.js',
159159
'sentry_browser_test.dart.browser_test.dart.wasm'
160160
]));
161-
expect(topFrame['function'],
162-
anyOf(['Object.wrapException', 'testCaptureException']));
161+
expect(
162+
topFrame['function'],
163+
anyOf([
164+
'Object.wrapException',
165+
'testCaptureException',
166+
'module0.testCaptureException'
167+
]));
163168

164169
expect(data['event_id'], sentryId.toString());
165170
expect(data['timestamp'], '2017-01-02T00:00:00.000Z');

0 commit comments

Comments
 (0)