aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/BrowserTestExtension/tests/KeyInfos.js
diff options
context:
space:
mode:
Diffstat (limited to 'lang/js/BrowserTestExtension/tests/KeyInfos.js')
-rw-r--r--lang/js/BrowserTestExtension/tests/KeyInfos.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/lang/js/BrowserTestExtension/tests/KeyInfos.js b/lang/js/BrowserTestExtension/tests/KeyInfos.js
index 03773a44..1829f227 100644
--- a/lang/js/BrowserTestExtension/tests/KeyInfos.js
+++ b/lang/js/BrowserTestExtension/tests/KeyInfos.js
@@ -22,7 +22,7 @@
*/
/* global describe, it, expect, before, Gpgmejs */
-/* global inputvalues, fixedLengthString */
+/* global inputvalues*/
describe('Key information', function () {
let context = null;
@@ -43,4 +43,15 @@ describe('Key information', function () {
done();
});
});
+
+ it('A userId keeps their encoding', function(done){
+ context.Keyring.importKey(inputvalues.publicKeyNonAscii.key, true)
+ .then(function(result){
+ expect(result.Keys[0]).to.be.an('object');
+ const user = result.Keys[0].key.get('userids')[0];
+ expect(user.get('name')).to.equal(
+ inputvalues.publicKeyNonAscii.userid);
+ done();
+ });
+ });
}); \ No newline at end of file