js: fix error in toKeyIdArray
-- * src/Helpers.js: GPGME_Keys were not parsed as valid, as their fingerprint getter is not a fingerprint 'property'. * BrowserTestExtension: fixed a dsplay typo in counting of tests.
This commit is contained in:
parent
1c618166fc
commit
6463b1cd3b
@ -34,9 +34,9 @@ describe('Long running Encryption/Decryption', function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
for (let i=0; i < 101; i++) {
|
for (let i=1; i < 101; i++) {
|
||||||
it('Successful encrypt/decrypt completely random data '
|
it('Successful encrypt/decrypt completely random data '
|
||||||
+ (i+1) + '/100', function (done) {
|
+ (i) + '/100', function (done) {
|
||||||
const data = bigString(2*1024*1024);
|
const data = bigString(2*1024*1024);
|
||||||
context.encrypt({ data: data, publicKeys: good_fpr })
|
context.encrypt({ data: data, publicKeys: good_fpr })
|
||||||
.then(function (answer){
|
.then(function (answer){
|
||||||
|
@ -50,7 +50,7 @@ export function toKeyIdArray (input){
|
|||||||
}
|
}
|
||||||
} else if (typeof (input[i]) === 'object'){
|
} else if (typeof (input[i]) === 'object'){
|
||||||
let fpr = '';
|
let fpr = '';
|
||||||
if (input[i].hasOwnProperty('fingerprint')){
|
if (input[i].fingerprint !== undefined){
|
||||||
fpr = input[i].fingerprint;
|
fpr = input[i].fingerprint;
|
||||||
} else if (input[i].hasOwnProperty('primaryKey') &&
|
} else if (input[i].hasOwnProperty('primaryKey') &&
|
||||||
input[i].primaryKey.hasOwnProperty('getFingerprint')){
|
input[i].primaryKey.hasOwnProperty('getFingerprint')){
|
||||||
|
Loading…
Reference in New Issue
Block a user