Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Jan 5, 2024
1 parent 16a97b1 commit 0a242a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
17 changes: 6 additions & 11 deletions packages/ensjs/src/functions/public/ccip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ describe('CCIP', () => {
it('should return records from a ccip-read name', async () => {
const result = await getRecords(goerliPublicClient, {
name: '1.offchainexample.eth',
records: {
texts: ['email', 'description'],
contentHash: true,
coins: ['ltc', '60'],
},
texts: ['email', 'description'],
contentHash: true,
coins: ['ltc', '60'],
})
expect(result).toMatchInlineSnapshot(`
{
Expand Down Expand Up @@ -64,13 +62,10 @@ describe('CCIP', () => {
it('should return records from a ccip-read name with incompliant resolver', async () => {
const result = await getRecords(mainnetPublicClient, {
name: 'alisha.beam.eco',
records: {
texts: ['email', 'description'],
contentHash: true,
coins: ['ltc', '60'],
},
texts: ['email', 'description'],
contentHash: true,
coins: ['ltc', '60'],
})
if (!result) throw new Error('No result')
expect(result).toMatchInlineSnapshot(`
{
"coins": [
Expand Down
8 changes: 3 additions & 5 deletions packages/ensjs/src/functions/wallet/setRecords.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ it('should return a transaction to the resolver and set successfully', async ()

const records = await getRecords(publicClient, {
name: 'test123.eth',
records: {
coins: ['etcLegacy'],
texts: ['foo'],
abi: true,
},
coins: ['etcLegacy'],
texts: ['foo'],
abi: true,
})
expect(records.abi!.abi).toStrictEqual(dummyABI)
expect(records.coins).toMatchInlineSnapshot(`
Expand Down

0 comments on commit 0a242a8

Please sign in to comment.