From e5920fc0616801a7e463b3fca804a93dd163e2cb Mon Sep 17 00:00:00 2001 From: Sasha Date: Mon, 29 Jan 2024 19:10:49 +0100 Subject: [PATCH] up test --- src/keystore/keystore.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/keystore/keystore.spec.ts b/src/keystore/keystore.spec.ts index cd28060..896759d 100644 --- a/src/keystore/keystore.spec.ts +++ b/src/keystore/keystore.spec.ts @@ -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); }); });