From 39ea4abff4bfa09c4e98e00ad0d4e0e7b78f1187 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 17 Jan 2022 20:10:17 -0500 Subject: feat: auto-discover config file (#13313) --- cli/tests/testdata/fmt/with_config/subdir/b.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cli/tests/testdata/fmt/with_config/subdir/b.ts (limited to 'cli/tests/testdata/fmt/with_config/subdir/b.ts') diff --git a/cli/tests/testdata/fmt/with_config/subdir/b.ts b/cli/tests/testdata/fmt/with_config/subdir/b.ts new file mode 100644 index 000000000..840198d89 --- /dev/null +++ b/cli/tests/testdata/fmt/with_config/subdir/b.ts @@ -0,0 +1,15 @@ +// This file should be excluded from formatting +Deno.test( + { perms: { net: true } }, + async function fetchBodyUsedCancelStream() { + const response = await fetch( + "http://localhost:4545/fixture.json", + ); + assert(response.body !== null); + + assertEquals(response.bodyUsed, false); + const promise = response.body.cancel(); + assertEquals(response.bodyUsed, true); + await promise; + }, +); \ No newline at end of file -- cgit v1.2.3