Skip to content

Commit

Permalink
Allow comparing string arrays (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed Mar 2, 2021
1 parent 71a1ca5 commit 08a99ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Expand Up @@ -23,8 +23,8 @@ export function chars(actual: string, expected: string, message = "mismatching s
* If there are any differences, it throws an exception with a Bash-colored diff as the error message.
*/
export function json(
actual: Record<string, unknown>,
expected: Record<string, unknown>,
actual: Record<string, unknown> | string[],
expected: Record<string, unknown> | string[],
message = "mismatching objects"
): void {
if (!actual) {
Expand Down

0 comments on commit 08a99ae

Please sign in to comment.