mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-11-09 16:01:42 +08:00
fix(keybase): Minor linter errors
This commit is contained in:
parent
631eff5d47
commit
db0640a614
1 changed files with 8 additions and 8 deletions
|
|
@ -69,7 +69,7 @@ fdescribe "PGPKeyStore", ->
|
|||
-----END PGP PRIVATE KEY BLOCK-----"""
|
||||
|
||||
# mock getKeyContents to get rid of all the fs.readFiles
|
||||
spyOn(PGPKeyStore, "getKeyContents").andCallFake( ({key, passphrase, callback}) =>
|
||||
spyOn(PGPKeyStore, "getKeyContents").andCallFake( ({key, passphrase, callback}) =>
|
||||
data = @TEST_KEY
|
||||
pgp.KeyManager.import_from_armored_pgp {
|
||||
armored: data
|
||||
|
|
@ -84,7 +84,7 @@ fdescribe "PGPKeyStore", ->
|
|||
if callback?
|
||||
callback()
|
||||
)
|
||||
|
||||
|
||||
# define an encrypted and an unencrypted message
|
||||
@unencryptedMsg = new Message({clientId: 'test', subject: 'Subject', body: '<p>Body</p>'})
|
||||
body = """-----BEGIN PGP MESSAGE-----
|
||||
|
|
@ -98,14 +98,14 @@ fdescribe "PGPKeyStore", ->
|
|||
# blow away the saved identities and set up a test pub/priv keypair
|
||||
PGPKeyStore._identities = {}
|
||||
pubIdent = new Identity({
|
||||
addresses: ["benbitdiddle@icloud.com"]
|
||||
isPriv: false
|
||||
})
|
||||
addresses: ["benbitdiddle@icloud.com"]
|
||||
isPriv: false
|
||||
})
|
||||
PGPKeyStore._identities[pubIdent.clientId] = pubIdent
|
||||
privIdent = new Identity({
|
||||
addresses: ["benbitdiddle@icloud.com"]
|
||||
isPriv: true
|
||||
})
|
||||
addresses: ["benbitdiddle@icloud.com"]
|
||||
isPriv: true
|
||||
})
|
||||
PGPKeyStore._identities[privIdent.clientId] = privIdent
|
||||
|
||||
describe "when handling private keys", ->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue