test: display better error message for assertion · nodejs/node@1690746

Original file line numberDiff line numberDiff line change

@@ -129,5 +129,5 @@ const gunz = zlib.createGunzip();

129129

inp.pipe(gzip).pipe(gunz).pipe(out);

130130
131131

out.on('data', common.mustCall((c) => {

132-

assert.strictEqual(c, inp._hash, 'hashes should match');

132+

assert.strictEqual(c, inp._hash, `Hash '${c}' equals '${inp._hash}'.`);

133133

}));