aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/unittests.js
diff options
context:
space:
mode:
Diffstat (limited to 'lang/js/unittests.js')
-rw-r--r--lang/js/unittests.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/lang/js/unittests.js b/lang/js/unittests.js
index 8f1ffb66..de06320e 100644
--- a/lang/js/unittests.js
+++ b/lang/js/unittests.js
@@ -287,13 +287,14 @@ function unittests (){
it('Querying non-existing Key from Keyring', function (done){
let keyring = new GPGME_Keyring;
- keyring.getKeys(kp.invalidKeyFingerprint, true).then(
- function (result){
- expect(result).to.be.an('array');
- expect(result.length).to.equal(0);
- done();
- }
- );
+ keyring.getKeys({
+ pattern: kp.invalidKeyFingerprint,
+ prepare_sync: true
+ }).then(function (result){
+ expect(result).to.be.an('array');
+ expect(result.length).to.equal(0);
+ done();
+ });
});
});