summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/fmt/fmt_with_config/b.ts
blob: 5c37d51d2877b318533827f7d2800ff5d8fe5492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This file should be excluded from formatting
unitTest(
    { 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;
    },
);