summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/fmt/with_config/subdir/b.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2022-01-17 20:10:17 -0500
committerGitHub <noreply@github.com>2022-01-17 20:10:17 -0500
commit39ea4abff4bfa09c4e98e00ad0d4e0e7b78f1187 (patch)
tree501ac70cd048f0a197f2accf1cf01234d54cf143 /cli/tests/testdata/fmt/with_config/subdir/b.ts
parentb10563cb2083f7af9d4320662d6aa1897b6db23e (diff)
feat: auto-discover config file (#13313)
Diffstat (limited to 'cli/tests/testdata/fmt/with_config/subdir/b.ts')
-rw-r--r--cli/tests/testdata/fmt/with_config/subdir/b.ts15
1 files changed, 15 insertions, 0 deletions
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