aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/unittests.js
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-08-17 14:57:41 +0000
committerMaximilian Krambach <[email protected]>2018-08-17 14:57:41 +0000
commitad39d54d192864b54a155bf5f94d5b6bb3e8612a (patch)
treed10d1944bcffea2b27e569a7836cb2e5fcff1b32 /lang/js/unittests.js
parentjs: disallow bulk set data on key from outside (diff)
downloadgpgme-ad39d54d192864b54a155bf5f94d5b6bb3e8612a.tar.gz
gpgme-ad39d54d192864b54a155bf5f94d5b6bb3e8612a.zip
js: removed Key.armor property in synchronous use
-- * src/Key.js The synchronous mode for a Key does not offer an armor/ armored property anymore. This frees up a lot of performance issues, also the armored expoort is expected to change quite often, so a cached version is not advisable. * hasSecret/getHasSecret is now refactored, to reflect their uses. With get('hasSecret') there is a method that fetches the result. * src/Key.js also some refactoring
Diffstat (limited to 'lang/js/unittests.js')
-rw-r--r--lang/js/unittests.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/lang/js/unittests.js b/lang/js/unittests.js
index 3304b1eb..25023bcb 100644
--- a/lang/js/unittests.js
+++ b/lang/js/unittests.js
@@ -304,10 +304,6 @@ function unittests (){
expect(result).to.be.an('array');
expect(result[0]).to.be.an.instanceof(GPGME_Key);
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();
}
);