diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/unit/fetch_test.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/unit/fetch_test.ts b/cli/tests/unit/fetch_test.ts index e046e9c03..e73953a5c 100644 --- a/cli/tests/unit/fetch_test.ts +++ b/cli/tests/unit/fetch_test.ts @@ -9,6 +9,16 @@ import { } from "./test_util.ts"; import { Buffer } from "../../../test_util/std/io/buffer.ts"; +unitTest( + { perms: { net: true } }, + async function fetchRequiresOneArgument(): Promise<void> { + await assertThrowsAsync( + fetch as unknown as () => Promise<void>, + TypeError, + ); + }, +); + unitTest({ perms: { net: true } }, async function fetchProtocolError(): Promise< void > { |