mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-02 13:43:06 +00:00
up test
This commit is contained in:
parent
62fec796f2
commit
e5920fc061
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user