Skip to content

Commit

Permalink
fix: improve error message (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed Sep 23, 2020
1 parent 0077fc7 commit b7871c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export async function prepare(

if (!isEqual(actual.sort(), results.sort())) {
throw new Error(
`Results differed from actual! \n${diffDefault(results, actual)}`
`Expected match not found!\n${diffDefault(actual, results)}`
);
}
}
Expand Down

0 comments on commit b7871c6

Please sign in to comment.