Skip to content

Commit 60ce965

Browse files
committed
test(ping-pong): show expected vs actual on fail
1 parent 449c9cd commit 60ce965

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/ping-pong.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ function test() {
116116
let expectedStr = `${headerStr},${staticNonceStr}`;
117117
let messageStr = messageBytes.toString();
118118
if (expectedStr !== messageStr) {
119-
throw new Error('complete messages did not match');
119+
throw new Error(
120+
`complete messages did not match: ${expectedStr} !== ${messageStr}`,
121+
);
120122
}
121123
}
122124

0 commit comments

Comments
 (0)