Skip to content

Commit

Permalink
test(ping-pong): show expected vs actual on fail
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Jul 13, 2024
1 parent 449c9cd commit 60ce965
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ping-pong.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ function test() {
let expectedStr = `${headerStr},${staticNonceStr}`;
let messageStr = messageBytes.toString();
if (expectedStr !== messageStr) {
throw new Error('complete messages did not match');
throw new Error(
`complete messages did not match: ${expectedStr} !== ${messageStr}`,
);
}
}

Expand Down

0 comments on commit 60ce965

Please sign in to comment.