We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71f8a23 commit 9c72921Copy full SHA for 9c72921
test/parallel/test-crypto-engine.js
@@ -0,0 +1,18 @@
1
+'use strict';
2
+const common = require('../common');
3
+
4
+if (!common.hasCrypto) {
5
+ common.skip('missing crypto');
6
+ return;
7
+}
8
9
+const assert = require('assert');
10
+const crypto = require('crypto');
11
12
+assert.throws(function() {
13
+ crypto.setEngine(true);
14
+}, /^TypeError: "id" argument should be a string$/);
15
16
17
+ crypto.setEngine('/path/to/engine', 'notANumber');
18
+}, /^TypeError: "flags" argument should be a number, if present$/);
0 commit comments