Skip to content

Commit

Permalink
Remove invalid tests
Browse files Browse the repository at this point in the history
  • Loading branch information
david0xd committed Oct 23, 2024
1 parent 1432970 commit d983035
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions packages/examples/packages/name-lookup/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,4 @@ describe('onNameLookup', () => {
],
});
});

it('returns resolved domain if address and domain', async () => {
const request = {
address: ADDRESS_MOCK,
domain: DOMAIN_MOCK,
chainId: CHAIN_ID_MOCK,
} as any;

const { onNameLookup } = await installSnap();

expect(await onNameLookup(request)).toRespondWith({
resolvedDomains: [
{ resolvedDomain: 'c0f.1.test.domain', protocol: 'test protocol' },
],
});
});

it('returns null if no domain or address', async () => {
const request = {
chainId: CHAIN_ID_MOCK,
};

const { onNameLookup } = await installSnap();

expect(await onNameLookup(request)).toBeNull();
});
});

0 comments on commit d983035

Please sign in to comment.