fix code style
This commit is contained in:
parent
06701786c4
commit
cbddbdb296
3 changed files with 28 additions and 9 deletions
|
@ -220,6 +220,16 @@ describe('app module', function () {
|
|||
done()
|
||||
})
|
||||
|
||||
ipcRenderer.once('select-client-certificate', function (event, webContentsId, list) {
|
||||
assert.equal(webContentsId, w.webContents.id)
|
||||
assert.equal(list.length, 1)
|
||||
assert.equal(list[0].issuerName, 'Intermediate CA')
|
||||
assert.equal(list[0].subjectName, 'Client Cert')
|
||||
assert.equal(list[0].issuer.commonName, 'Intermediate CA')
|
||||
assert.equal(list[0].subject.commonName, 'Client Cert')
|
||||
event.sender.send('client-certificate-response', list[0])
|
||||
})
|
||||
|
||||
app.importCertificate(options, function (result) {
|
||||
assert(!result)
|
||||
ipcRenderer.sendSync('set-client-certificate-option', false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue