Skip to content

Commit 8547a56

Browse files
authored
Apply suggestions from code review
1 parent fe1bfa1 commit 8547a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-crypto-dh-errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ for (const g of [-1, 1]) {
4545
name: 'Error',
4646
message: /bad generator/,
4747
};
48-
4948
assert.throws(() => crypto.createDiffieHellman('abcdef', g), ex);
5049
assert.throws(() => crypto.createDiffieHellman('abcdef', 'hex', g), ex);
5150
}
@@ -55,6 +54,7 @@ for (const g of [Buffer.from([]),
5554
Buffer.from([1])]) {
5655
const ex = {
5756
code: 'ERR_OSSL_DH_BAD_GENERATOR',
57+
name: 'Error',
5858
message: /bad generator/,
5959
};
6060
assert.throws(() => crypto.createDiffieHellman('abcdef', g), ex);

0 commit comments

Comments
 (0)