UNPKG

@indrajala/asn1der

Version:

parse ASN.1 DER structures

13 lines 438 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const asn1der_1 = require("../asn1der"); const oid1 = "2a864886f70d010105"; describe('parseOID', () => { it('should parse a valid OID', () => { chai_1.expect(asn1der_1.parseOID(Buffer.from(oid1, 'hex'))) .to .equal('1.2.840.113549.1.1.5'); }); }); //# sourceMappingURL=parseOID.spec.js.map