Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josemarinas committed Feb 22, 2024
1 parent c85ea37 commit e1b13f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/test/unit/ens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ describe('ens', () => {
// mocked provider
const provider = new JsonRpcProvider();
if (input.error) {
expect(async () => {
await resolveEnsName(input.input, provider);
await expect(() => {
resolveEnsName(input.input, provider);
}).toThrow(input.error);
continue;
}
Expand Down Expand Up @@ -55,8 +55,8 @@ describe('ens', () => {
for (const input of inputs) {
// mocked provider
if (input.error) {
expect(async () => {
await resolveEnsNameWithProvider(input.input, input.network);
await expect(() => {
resolveEnsNameWithProvider(input.input, input.network);
}).toThrow(input.error);
continue;
}
Expand Down

0 comments on commit e1b13f8

Please sign in to comment.