Added a test to PublicKeyRing to increase coverage
This commit is contained in:
parent
f8c665ce2e
commit
d4ce4e3c01
2 changed files with 18 additions and 3 deletions
|
|
@ -43,9 +43,9 @@ PublicKeyRing.trim = function(data) {
|
|||
};
|
||||
|
||||
PublicKeyRing.fromObj = function(data) {
|
||||
if (data instanceof PublicKeyRing) {
|
||||
throw new Error('bad data format: Did you use .toObj()?');
|
||||
}
|
||||
preconditions.checkArgument(typeof data !== 'PublicKeyRing');
|
||||
|
||||
|
||||
var opts = PublicKeyRing.trim(data);
|
||||
|
||||
// Support old indexes schema
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue