UNPKG

appium-xcuitest-driver

Version:

Appium driver for iOS using XCUITest for backend

16 lines 895 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const certificate_1 = require("../../../lib/commands/certificate"); const chai_1 = require("chai"); describe('ssl certificate parser command', function () { const sslOutputLibreSSL = 'subject= /C=US/ST=California/L=San Francisco/O=BadSSL/CN=*.badssl.com'; const sslOutputOpenSSL = 'subject=C = US, ST = California, L = San Francisco, O = BadSSL, CN = *.badssl.com'; const expectedString = '*.badssl.com'; it('try to parse LibreSSL command output', function () { (0, chai_1.expect)((0, certificate_1.parseCommonName)(sslOutputLibreSSL)).to.eql(expectedString); }); it('try to parse OpenSSL command output', function () { (0, chai_1.expect)((0, certificate_1.parseCommonName)(sslOutputOpenSSL)).to.eql(expectedString); }); }); //# sourceMappingURL=ssl-certificate-specs.js.map