summaryrefslogtreecommitdiff
path: root/tests/unit/streams_test.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-09-05 15:22:31 +0200
committerGitHub <noreply@github.com>2024-09-05 15:22:31 +0200
commit15fce5b290d7dc3eb503a70bd8a10aaf72a09f5e (patch)
treea236e2de82f91b8a36cb5228db119f116fe05c06 /tests/unit/streams_test.ts
parentb54347c448ca4a003b81800655eb1433fc842b2a (diff)
feat(check): turn on useUnknownInCatchVariables (#25465)
Part of #25162 Closes #11826
Diffstat (limited to 'tests/unit/streams_test.ts')
-rw-r--r--tests/unit/streams_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/streams_test.ts b/tests/unit/streams_test.ts
index 80b45e602..b866fa7d5 100644
--- a/tests/unit/streams_test.ts
+++ b/tests/unit/streams_test.ts
@@ -298,7 +298,7 @@ for (
await core.read(rid, new Uint8Array(1));
fail();
} catch (e) {
- assertEquals(e.message, `Uh oh (${type})!`);
+ assertEquals((e as Error).message, `Uh oh (${type})!`);
}
core.close(rid);
});
@@ -429,7 +429,7 @@ function createStreamTest(
fail();
} catch (e) {
// We expect this to be thrown
- assertEquals(e.message, "Expected error!");
+ assertEquals((e as Error).message, "Expected error!");
}
} else {
const buffer = new Uint8Array(1);
@@ -471,7 +471,7 @@ for (const packetCount of [1, 1024]) {
}
fail();
} catch (e) {
- assertEquals(e.message, "operation canceled");
+ assertEquals((e as Error).message, "operation canceled");
}
assertEquals(await promise, "resource closed");
});