This commit is contained in:
		| @@ -155,17 +155,14 @@ describe ('key store', () => { | ||||
|     const exp = ks.export_verification_data (); | ||||
|     // eslint-disable-next-line dot-notation | ||||
|     expect (Object.keys (ks['_keys'])) | ||||
|       .toEqual (Object.keys (exp)); | ||||
|     expect (Object.keys (exp) | ||||
|       .filter ((v) => typeof exp[v].private_key !== 'undefined').length) | ||||
|       .toEqual (0); | ||||
|       .toEqual (exp.map ((v) => v.index)); | ||||
|  | ||||
|     const ks2 = (new KeyStore); | ||||
|     expect (ks2.instance_id).not.toEqual (ks.instance_id); | ||||
|     ks2.import_verification_data (exp); | ||||
|     // eslint-disable-next-line dot-notation | ||||
|     expect (ks2['_keys']) | ||||
|       .toEqual (exp); | ||||
|     expect (Object.keys (ks2['_keys'])) | ||||
|       .toEqual (exp.map ((v) => v.index)); | ||||
|  | ||||
|     const sign2 = await ks2.get_sign_key (iat, frame); | ||||
|     const ver2 = ks2.get_key (iat); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user