mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-03-30 16:23:30 +00:00
update test
This commit is contained in:
parent
0ff9ab2535
commit
4476564ad5
@ -18,9 +18,8 @@ describe("RLN Contract abstraction", () => {
|
||||
provider: voidSigner,
|
||||
});
|
||||
|
||||
chai.spy.on(rlnContract, "contract.queryFilter", () =>
|
||||
Promise.resolve([mockEvent()])
|
||||
);
|
||||
rlnContract["contract"]["queryFilter"] = () =>
|
||||
Promise.resolve([mockEvent()]);
|
||||
|
||||
await rlnContract.fetchMembers(rlnInstance);
|
||||
|
||||
@ -38,9 +37,9 @@ describe("RLN Contract abstraction", () => {
|
||||
provider: voidSigner,
|
||||
});
|
||||
|
||||
chai.spy.on(rlnContract, "contract.MEMBERSHIP_DEPOSIT", () =>
|
||||
Promise.resolve(1)
|
||||
);
|
||||
(rlnContract["contract"] as any)["MEMBERSHIP_DEPOSIT"] = () =>
|
||||
Promise.resolve(1);
|
||||
|
||||
const contractSpy = chai.spy.on(rlnContract, "contract.register");
|
||||
|
||||
await rlnContract.registerMember(rlnInstance, mockSignature);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user