Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Dec 2, 2024
1 parent 8acbbe1 commit c8d7dea
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sdks/node-sdk/test/Client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,13 @@ describe("Client", () => {
{ env: "local" },
);
expect(authorized).toBe(true);

const notAuthorized = await Client.isAddressAuthorized(
client.inboxId,
"0x1234567890123456789012345678901234567890",
{ env: "local" },
);
expect(notAuthorized).toBe(false);
});

it("should check if an installation is authorized", async () => {
Expand All @@ -252,5 +259,12 @@ describe("Client", () => {
{ env: "local" },
);
expect(authorized).toBe(true);

const notAuthorized = await Client.isInstallationAuthorized(
client.inboxId,
new Uint8Array(32),
{ env: "local" },
);
expect(notAuthorized).toBe(false);
});
});

0 comments on commit c8d7dea

Please sign in to comment.