From eadf943e594a5ebf95ddf7e007cfb7d2dcff130e Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 12 Jun 2022 15:20:16 -0400 Subject: fix(console): constrol inspect() indent with option (#14867) This commit updates the Deno.inspect() logic to use the indentLevel option to control indentation instead of passing around separate indent/level parameters internally. Refs: https://github.com/denoland/deno/issues/8099 Refs: https://github.com/denoland/deno/issues/14171 --- cli/tests/unit/console_test.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/unit/console_test.ts b/cli/tests/unit/console_test.ts index fbaba9e43..1b364eda1 100644 --- a/cli/tests/unit/console_test.ts +++ b/cli/tests/unit/console_test.ts @@ -887,11 +887,9 @@ Deno.test(function consoleTestWithCustomInspector() { [customInspect]( inspect: unknown, options: Deno.InspectOptions, - depth: number, ): string { assertEquals(typeof inspect, "function"); assertEquals(typeof options, "object"); - assertEquals(depth, 0); return "b"; } } -- cgit v1.2.3