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.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/lang/js/unittests.js b/lang/js/unittests.js
index 169e8ebc..04e15ef3 100644
--- a/lang/js/unittests.js
+++ b/lang/js/unittests.js
@@ -272,9 +272,9 @@ function unittests (){
keyring.getKeys(null, true).then(function(result){
expect(result).to.be.an('array');
expect(result[0]).to.be.an.instanceof(GPGME_Key);
- expect(result[0].get('armored')).to.be.a('string');
- expect(result[0].get('armored')).to.include(
- '-----END PGP PUBLIC KEY BLOCK-----');
+ expect(result[0].get('hasSecret')).to.be.a('boolean');
+ // expect(result[0].get('armored')).to.include(
+ // '-----END PGP PUBLIC KEY BLOCK-----');
done();
});
}
@@ -287,9 +287,11 @@ function unittests (){
function(result){
expect(result).to.be.an('array');
expect(result[0]).to.be.an.instanceof(GPGME_Key);
- expect(result[0].get('armored')).to.be.a('string');
- expect(result[0].get('armored')).to.include(
- '-----END PGP PUBLIC KEY BLOCK-----');
+ expect(result[0].get('hasSecret')).to.be.a('boolean');
+ // TODO: preparing sync for armored is still in discussion
+ // expect(result[0].get('armored')).to.be.a('string');
+ // expect(result[0].get('armored')).to.include(
+ // '-----END PGP PUBLIC KEY BLOCK-----');
done();
}
);