Skip to content

Commit

Permalink
Merge pull request #861 from samchon/features/tags
Browse files Browse the repository at this point in the history
`TestValidator.equals()` to trace more detaily.
  • Loading branch information
samchon authored Apr 2, 2024
2 parents 08a14fc + 88bf0df commit fbe753e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/e2e/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/e2e",
"version": "0.4.2",
"version": "0.4.3",
"description": "E2E test utilify functions",
"main": "lib/index.js",
"scripts": {
Expand Down
6 changes: 5 additions & 1 deletion packages/e2e/src/TestValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ export namespace TestValidator {
const diff: string[] = json_equal_to(exception)(x)(y);
if (diff.length)
throw new Error(
`Bug on ${title}: found different values - [${diff.join(", ")}]`,
[
`Bug on ${title}: found different values - [${diff.join(", ")}]:`,
"\n",
JSON.stringify({ x, y }, null, 2),
].join("\n"),
);
};

Expand Down

0 comments on commit fbe753e

Please sign in to comment.