This commit is contained in:
Sasha 2024-01-29 19:10:49 +01:00
parent 62fec796f2
commit e5920fc061
No known key found for this signature in database

View File

@ -172,8 +172,8 @@ describe("Keystore", () => {
});
it("should fail to create store from invalid string", () => {
expect(Keystore.fromString("/asdq}")).to.eq(null);
expect(Keystore.fromString('{ "name": "it" }')).to.eq(null);
expect(Keystore.fromString("/asdq}")).to.eq(undefined);
expect(Keystore.fromString('{ "name": "it" }')).to.eq(undefined);
});
it("shoud create store from valid string", async () => {
@ -308,6 +308,6 @@ describe("Keystore", () => {
const store = Keystore.fromObject(NWAKU_KEYSTORE as any);
const result = await store.readCredential("wrong-hash", "wrong-password");
expect(result).to.eq(null);
expect(result).to.eq(undefined);
});
});