diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-07-11 05:52:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-11 00:52:18 -0400 |
commit | 5ec41cbcc2778a80b6ee91f0c391fc2edec0a8e0 (patch) | |
tree | 71d44638e72871624aef63deca19eb271ffa8604 /cli/tests/unit/headers_test.ts | |
parent | 40d081d3d9f64bcd2524da86fb78808ac1d7b888 (diff) |
feat(Deno.inspect): Add sorted, trailingComma, compact and iterableLimit to InspectOptions (#6591)
Diffstat (limited to 'cli/tests/unit/headers_test.ts')
-rw-r--r-- | cli/tests/unit/headers_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/unit/headers_test.ts b/cli/tests/unit/headers_test.ts index 8fbf1d4e4..2156fb56b 100644 --- a/cli/tests/unit/headers_test.ts +++ b/cli/tests/unit/headers_test.ts @@ -6,7 +6,7 @@ import { assertStringContains, } from "./test_util.ts"; const { - stringifyArgs, + inspectArgs, // @ts-expect-error TypeScript (as of 3.7) does not support indexing namespaces by symbol } = Deno[Deno.internal]; @@ -402,7 +402,7 @@ unitTest(function toStringShouldBeWebCompatibility(): void { }); function stringify(...args: unknown[]): string { - return stringifyArgs(args).replace(/\n$/, ""); + return inspectArgs(args).replace(/\n$/, ""); } unitTest(function customInspectReturnsCorrectHeadersFormat(): void { |