summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/fmt/with_config/subdir/b.ts
blob: d7eb08b09443195ad02d7550cf1addd74b36b80c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This file should be excluded from formatting
Deno.test(
    { perms: { net: true } },
    async function fetchBodyUsedCancelStream() {
      const response = await fetch(
        "http://localhost:4545/assets/fixture.json",
      );
      assert(response.body !== null);

      assertEquals(response.bodyUsed, false);
      const promise = response.body.cancel();
      assertEquals(response.bodyUsed, true);
      await promise;
    },
);