Browse Source

pify tweaks

http2
Sindre Sorhus 9 years ago
parent
commit
7ebcd93ced
  1. 2
      package.json
  2. 6
      test/https.js

2
package.json

@ -67,7 +67,7 @@
"into-stream": "^2.0.0",
"nyc": "^3.2.2",
"pem": "^1.4.4",
"pify": "^2.2.0",
"pify": "^2.3.0",
"tempfile": "^1.1.1",
"xo": "*"
},

6
test/https.js

@ -10,15 +10,15 @@ let cert;
let caRootKey;
let caRootCert;
let pemify = pify.all(pem);
const pemP = pify(pem);
test.before('setup', async t => {
const caKeys = await pemify.createCertificate({days: 1, selfSigned: true});
const caKeys = await pemP.createCertificate({days: 1, selfSigned: true});
caRootKey = caKeys.serviceKey;
caRootCert = caKeys.certificate;
const keys = await pemify.createCertificate({
const keys = await pemP.createCertificate({
serviceCertificate: caRootCert,
serviceKey: caRootKey,
serial: Date.now(),

Loading…
Cancel
Save