Skip to content

Commit 73d19b1

Browse files
sam-githubrvagg
authored andcommitted
test: ensure openssl version prints correctly
PR-URL: #23678 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
1 parent 544e64d commit 73d19b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/parallel/test-process-versions.js

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ assert(/^\d+\.\d+\.\d+(?:\.\d+)?(?: \(candidate\))?$/
3333
.test(process.versions.v8));
3434
assert(/^\d+$/.test(process.versions.modules));
3535

36+
if (common.hasCrypto) {
37+
assert(/^\d+\.\d+\.\d+[a-z]?$/.test(process.versions.openssl));
38+
}
39+
3640
for (let i = 0; i < expected_keys.length; i++) {
3741
const key = expected_keys[i];
3842
const descriptor = Object.getOwnPropertyDescriptor(process.versions, key);

0 commit comments

Comments
 (0)