diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-10-09 06:12:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-09 16:12:44 +1100 |
commit | 98727b331d0e8a762745e049641317c0d64b25f0 (patch) | |
tree | d5e99698cc3da061787329c0980d5f2790ca2eeb /cli/tests/unit/body_test.ts | |
parent | c06fbc449d3a92b5a650ce5bddb28ebbfebf3aa7 (diff) |
fix(op_crates/fetch): Stringify and parse Request URLs (#7838)
Fixes #7837
Diffstat (limited to 'cli/tests/unit/body_test.ts')
-rw-r--r-- | cli/tests/unit/body_test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/unit/body_test.ts b/cli/tests/unit/body_test.ts index 404ae305d..4839d4094 100644 --- a/cli/tests/unit/body_test.ts +++ b/cli/tests/unit/body_test.ts @@ -4,7 +4,7 @@ import { assert, assertEquals, unitTest } from "./test_util.ts"; // just a hack to get a body object // eslint-disable-next-line @typescript-eslint/no-explicit-any function buildBody(body: any, headers?: Headers): Body { - const stub = new Request("", { + const stub = new Request("http://foo/", { body: body, headers, }); |