mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-07 06:36:45 +00:00
Keyring test should ensure that it's actually getting a key when it uses a valid address
This commit is contained in:
parent
f00f4a9582
commit
bb4057af7d
@ -54,7 +54,7 @@ describe("Keyring", function() {
|
|||||||
});
|
});
|
||||||
it('getPublicKeyForAddress() - valid address', function(done) {
|
it('getPublicKeyForAddress() - valid address', function(done) {
|
||||||
var key = keyring.getPublicKeyForAddress(user);
|
var key = keyring.getPublicKeyForAddress(user);
|
||||||
expect(key).to.exist;
|
expect(key).to.exist.and.have.length(1);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
it('getPrivateKeyForAddress() - unknown address', function(done) {
|
it('getPrivateKeyForAddress() - unknown address', function(done) {
|
||||||
@ -64,7 +64,7 @@ describe("Keyring", function() {
|
|||||||
});
|
});
|
||||||
it('getPrivateKeyForAddress() - valid address', function(done) {
|
it('getPrivateKeyForAddress() - valid address', function(done) {
|
||||||
var key = keyring.getPrivateKeyForAddress(user);
|
var key = keyring.getPrivateKeyForAddress(user);
|
||||||
expect(key).to.exist;
|
expect(key).to.exist.and.have.length(1);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
it('getKeysForKeyId() - unknown id', function(done) {
|
it('getKeysForKeyId() - unknown id', function(done) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user