Skip to content

Commit 979e3be

Browse files
panvaaduh95
andauthored
Update test/parallel/test-crypto-oneshot-hash.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 6c9794d commit 979e3be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/parallel/test-crypto-oneshot-hash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function getXofOptions(method) {
1616
try {
1717
crypto.createHash(method);
1818
} catch (err) {
19-
assert.strictEqual(err.code, invalidXofLengthCode);
19+
if (err?.code !== invalidXofLengthCode) throw err;
2020
return { outputLength: 16 };
2121
}
2222
}

0 commit comments

Comments
 (0)