Skip to content

Commit

Permalink
updated recovershard and revoke to handle new error response
Browse files Browse the repository at this point in the history
  • Loading branch information
aakash-taneja committed Dec 14, 2024
1 parent 05bcb72 commit f63efb1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/methods/recoverShards/test/recoverShards.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ describe("recoverShards:", () => {
5
);
expect(shards).toEqual([]);
expect(error?.message).toBe("Access Denied");
expect(error?.message?.message?.message).toBe("Access Denied");
}, 20000);
});
14 changes: 6 additions & 8 deletions src/methods/revokeAccess/test/revoke.test.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import _package from "../.."
import { ethers } from "ethers"
import { getAuthMessage } from "../../getAuthMessage"
import _package from "../..";
import { ethers } from "ethers";
import { getAuthMessage } from "../../getAuthMessage";

describe("revoke file address", () => {
let signer, signer2;

beforeAll(async () => {
signer = new ethers.Wallet(
"0x8218aa5dbf4dbec243142286b93e26af521b3e91219583595a06a7765abc9c8b",
"0x8218aa5dbf4dbec243142286b93e26af521b3e91219583595a06a7765abc9c8b"
);
signer2 = new ethers.Wallet(
"0x8218aa5dbf4dbec243142286b93e26af521b3e91219583595a06a7765abc9c8a",
"0x8218aa5dbf4dbec243142286b93e26af521b3e91219583595a06a7765abc9c8a"
);
});

Expand Down Expand Up @@ -52,8 +52,6 @@ describe("revoke file address", () => {
[signer2.address]
);
expect(isSuccess).toBe(false);
expect(error.message).toMatch(/Access Denied/i);
expect(error.message.message.message).toMatch(/Access Denied/i);
}, 20000);


});

0 comments on commit f63efb1

Please sign in to comment.