summaryrefslogtreecommitdiff
path: root/cli/js/tests/headers_test.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-03-29 04:03:49 +1100
committerGitHub <noreply@github.com>2020-03-28 13:03:49 -0400
commitbced52505f32d6cca4f944bb610a8a26767908a8 (patch)
treeda49a5df4b7bd6f8306248069228cd6bd0db1303 /cli/js/tests/headers_test.ts
parent1397b8e0e7c85762e19d88fde103342bfa563360 (diff)
Update to Prettier 2 and use ES Private Fields (#4498)
Diffstat (limited to 'cli/js/tests/headers_test.ts')
-rw-r--r--cli/js/tests/headers_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/js/tests/headers_test.ts b/cli/js/tests/headers_test.ts
index fcb5385a5..1ed58c9a4 100644
--- a/cli/js/tests/headers_test.ts
+++ b/cli/js/tests/headers_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { unitTest, assert, assertEquals } from "./test_util.ts";
const {
- stringifyArgs
+ stringifyArgs,
// @ts-ignore TypeScript (as of 3.7) does not support indexing namespaces by symbol
} = Deno[Deno.symbols.internal];
@@ -29,7 +29,7 @@ const headerDict: Record<string, string> = {
name3: "value3",
// @ts-ignore
name4: undefined,
- "Content-Type": "value4"
+ "Content-Type": "value4",
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const headerSeq: any[] = [];
@@ -142,7 +142,7 @@ const headerEntriesDict: Record<string, string> = {
name: "value3",
"content-Type": "value4",
"Content-Typ": "value5",
- "Content-Types": "value6"
+ "Content-Types": "value6",
};
unitTest(function headerForEachSuccess(): void {
@@ -346,7 +346,7 @@ unitTest(function customInspectReturnsCorrectHeadersFormat(): void {
);
const multiParamHeader = new Headers([
["Content-Type", "application/json"],
- ["Content-Length", "1337"]
+ ["Content-Length", "1337"],
]);
assertEquals(
stringify(multiParamHeader),