Skip to content

Commit

Permalink
fix browser typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Nov 21, 2023
1 parent 357ecb3 commit b1d19a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions expect/_inspect_args.ts
@@ -1,10 +1,12 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
// deno-lint-ignore-file

export function inspectArgs(args: unknown[]): string {
return args.map(inspectArg).join(", ");
}

export function inspectArg(arg: unknown): string {
const { Deno } = globalThis as any;
return typeof Deno !== "undefined" && Deno.inspect
? Deno.inspect(arg)
: String(arg);

Check warning on line 12 in expect/_inspect_args.ts

View check run for this annotation

Codecov / codecov/patch

expect/_inspect_args.ts#L11-L12

Added lines #L11 - L12 were not covered by tests
Expand Down

0 comments on commit b1d19a4

Please sign in to comment.