Skip to content

Commit dc9adaa

Browse files
Update TestRunner/app/tests/ApiTests.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 20bd1ba commit dc9adaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TestRunner/app/tests/ApiTests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ describe(module.id, function () {
337337
expect(e.nativeException).toBeDefined();
338338
// The wrapped object should behave like an NSError proxy/wrapper
339339
// (we assert existence of localizedDescription property)
340-
expect(typeof e.nativeException.localizedDescription === "string" || e.nativeException.localizedDescription instanceof String).toBe(true);
340+
expect(typeof e.nativeException.localizedDescription).toBe('string');
341341
} finally {
342342
expect(isThrown).toBe(true);
343343
}

0 commit comments

Comments
 (0)