diff --git a/spec/api-session-spec.js b/spec/api-session-spec.js index 0672a4d7b..f6e69808b 100644 --- a/spec/api-session-spec.js +++ b/spec/api-session-spec.js @@ -556,7 +556,11 @@ describe('session module', function () { assert.equal(certificate.subjectName, 'localhost') assert.equal(certificate.issuer.commonName, 'Intermediate CA') assert.equal(certificate.subject.commonName, 'localhost') + assert.equal(certificate.issuerCert.issuer.commonName, 'Root CA') assert.equal(certificate.issuerCert.subject.commonName, 'Intermediate CA') + assert.equal(certificate.issuerCert.issuerCert.issuer.commonName, 'Root CA') + assert.equal(certificate.issuerCert.issuerCert.subject.commonName, 'Root CA') + assert.equal(certificate.issuerCert.issuerCert.issuerCert, undefined) callback(false) })