diff --git a/test/parallel/test-internal-util-assertCrypto.js b/test/parallel/test-internal-util-assertCrypto.js index f3003a2fee04e9..3a7acdb65c6b89 100644 --- a/test/parallel/test-internal-util-assertCrypto.js +++ b/test/parallel/test-internal-util-assertCrypto.js @@ -6,7 +6,7 @@ const util = require('internal/util'); if (!process.versions.openssl) { assert.throws(() => util.assertCrypto(), - /^Node.js is not compiled with openssl crypto support$/); + /^Error: Node.js is not compiled with openssl crypto support$/); } else { assert.doesNotThrow(() => util.assertCrypto()); }