From 1ef322b9a4bd43bcb79b7af47298ce5a06efccd3 Mon Sep 17 00:00:00 2001 From: sugh01 <19183308+sugh01@users.noreply.github.com> Date: Thu, 7 Dec 2023 11:23:09 +0530 Subject: [PATCH] Add tests for nullable content hash --- packages/ensjs/src/functions/wallet/setRecords.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/ensjs/src/functions/wallet/setRecords.test.ts b/packages/ensjs/src/functions/wallet/setRecords.test.ts index 113863a3..d39b3572 100644 --- a/packages/ensjs/src/functions/wallet/setRecords.test.ts +++ b/packages/ensjs/src/functions/wallet/setRecords.test.ts @@ -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, { @@ -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() @@ -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(`[]`)