Skip to content

Commit

Permalink
Add tests for nullable content hash
Browse files Browse the repository at this point in the history
  • Loading branch information
sugh01 committed Dec 7, 2023
1 parent a6e6a94 commit 1ef322b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ensjs/src/functions/wallet/setRecords.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ it('should return a transaction to the resolver and update successfully', async
]
`)
})
it('should return a transaction to the resolver and remove successfully', async () => {
it.only('should return a transaction to the resolver and remove successfully', async () => {
const tx = await setRecords(walletClient, {
name: 'test123.eth',
resolverAddress: (await getResolver(publicClient, {
Expand Down Expand Up @@ -233,6 +233,7 @@ it('should return a transaction to the resolver and remove successfully', async
coins: [],
texts: [],
abi: null,
contentHash: null,
account: accounts[1],
})
expect(utx).toBeTruthy()
Expand All @@ -248,6 +249,8 @@ it('should return a transaction to the resolver and remove successfully', async
contentHash: true,
},
})
console.log(records)
expect(records.contentHash).toBeNull()
expect(records.abi!.abi).toMatchInlineSnapshot(`abi: { contentType: 1, decoded: true, abi: [ [Object] ] }`)
expect(records.coins).toMatchInlineSnapshot(`[]`)
expect(records.texts).toMatchInlineSnapshot(`[]`)
Expand Down

0 comments on commit 1ef322b

Please sign in to comment.