Skip to content

Commit b986ead

Browse files
committed
test(x509): add x509 testing (closes mgcrea#12)
1 parent b062bb6 commit b986ead

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
1.19 KB
Binary file not shown.

test/index.spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,12 @@ describe('openssl-wrapper', () => {
2323
done();
2424
});
2525
});
26+
it('should support x509 action', (done) => {
27+
const buffer = fs.readFileSync(`${__dirname}/fixtures/AppleIncRootCertificate.cer`);
28+
opensslWrapper('x509', buffer, {noout: true, subject: true, inform: 'DER'}, (err, obj) => {
29+
expect(err).toBe(null);
30+
expect(obj).toBeA(Buffer);
31+
done();
32+
});
33+
});
2634
});

0 commit comments

Comments
 (0)