From 974bd002cf277fa744cb54ac5165b46c98064dd1 Mon Sep 17 00:00:00 2001 From: storywithoutend Date: Mon, 14 Oct 2024 11:41:05 +0800 Subject: [PATCH] fix unit test snapshots --- packages/ensjs/src/functions/public/_getAbi.test.ts | 2 +- packages/ensjs/src/functions/public/_getAddr.test.ts | 2 +- .../ensjs/src/functions/public/_getContentHash.test.ts | 2 +- packages/ensjs/src/functions/public/_getText.test.ts | 2 +- packages/ensjs/src/functions/public/getAbiRecord.test.ts | 2 +- .../ensjs/src/functions/public/getAddressRecord.test.ts | 2 +- .../src/functions/public/getContentHashRecord.test.ts | 2 +- packages/ensjs/src/functions/public/getName.test.ts | 2 +- packages/ensjs/src/functions/public/getRecords.test.ts | 2 +- packages/ensjs/src/functions/public/getTextRecord.test.ts | 2 +- .../ensjs/src/functions/public/universalWrapper.test.ts | 8 ++++---- .../src/utils/checkSafeUniversalResolverData.test.ts | 8 ++++---- 12 files changed, 18 insertions(+), 18 deletions(-) diff --git a/packages/ensjs/src/functions/public/_getAbi.test.ts b/packages/ensjs/src/functions/public/_getAbi.test.ts index 83674f73..d448fa22 100644 --- a/packages/ensjs/src/functions/public/_getAbi.test.ts +++ b/packages/ensjs/src/functions/public/_getAbi.test.ts @@ -17,6 +17,6 @@ it('propagates error when strict is true', async () => { Params: (uint256, bytes) Data: 0x1234 (2 bytes) - Version: viem@2.9.2] + Version: 2.21.12] `) }) diff --git a/packages/ensjs/src/functions/public/_getAddr.test.ts b/packages/ensjs/src/functions/public/_getAddr.test.ts index 9f848c8a..1e511c16 100644 --- a/packages/ensjs/src/functions/public/_getAddr.test.ts +++ b/packages/ensjs/src/functions/public/_getAddr.test.ts @@ -17,6 +17,6 @@ it('propagates error when strict is true', async () => { Params: (address) Data: 0x1234 (2 bytes) - Version: viem@2.9.2] + Version: 2.21.12] `) }) diff --git a/packages/ensjs/src/functions/public/_getContentHash.test.ts b/packages/ensjs/src/functions/public/_getContentHash.test.ts index 16d0d2ac..61d69aed 100644 --- a/packages/ensjs/src/functions/public/_getContentHash.test.ts +++ b/packages/ensjs/src/functions/public/_getContentHash.test.ts @@ -18,6 +18,6 @@ it('propagates error when strict is true', async () => { Params: (bytes) Data: 0x1234 (2 bytes) - Version: viem@2.9.2] + Version: 2.21.12] `) }) diff --git a/packages/ensjs/src/functions/public/_getText.test.ts b/packages/ensjs/src/functions/public/_getText.test.ts index deab21e8..fbd9243d 100644 --- a/packages/ensjs/src/functions/public/_getText.test.ts +++ b/packages/ensjs/src/functions/public/_getText.test.ts @@ -17,6 +17,6 @@ it('propagates error when strict is true', async () => { Params: (string) Data: 0x1234 (2 bytes) - Version: viem@2.9.2] + Version: 2.21.12] `) }) diff --git a/packages/ensjs/src/functions/public/getAbiRecord.test.ts b/packages/ensjs/src/functions/public/getAbiRecord.test.ts index 51383162..afb5ab26 100644 --- a/packages/ensjs/src/functions/public/getAbiRecord.test.ts +++ b/packages/ensjs/src/functions/public/getAbiRecord.test.ts @@ -261,7 +261,7 @@ describe('getAbiRecord()', () => { function: resolve(bytes name, bytes data) args: (0x, 0x) - Version: viem@2.9.2] + Version: 2.21.12] `) }) }) diff --git a/packages/ensjs/src/functions/public/getAddressRecord.test.ts b/packages/ensjs/src/functions/public/getAddressRecord.test.ts index cca089ca..0074d639 100644 --- a/packages/ensjs/src/functions/public/getAddressRecord.test.ts +++ b/packages/ensjs/src/functions/public/getAddressRecord.test.ts @@ -121,7 +121,7 @@ describe('getAddressRecord()', () => { function: resolve(bytes name, bytes data) args: (0x, 0x) - Version: viem@2.9.2] + Version: 2.21.12] `) }) }) diff --git a/packages/ensjs/src/functions/public/getContentHashRecord.test.ts b/packages/ensjs/src/functions/public/getContentHashRecord.test.ts index 7c7255fd..c34c3b4c 100644 --- a/packages/ensjs/src/functions/public/getContentHashRecord.test.ts +++ b/packages/ensjs/src/functions/public/getContentHashRecord.test.ts @@ -67,7 +67,7 @@ describe('getContentHashRecord', () => { function: resolve(bytes name, bytes data) args: (0x, 0x) - Version: viem@2.9.2] + Version: 2.21.12] `) }) }) diff --git a/packages/ensjs/src/functions/public/getName.test.ts b/packages/ensjs/src/functions/public/getName.test.ts index c0d21cb2..3e0dcbda 100644 --- a/packages/ensjs/src/functions/public/getName.test.ts +++ b/packages/ensjs/src/functions/public/getName.test.ts @@ -119,7 +119,7 @@ describe('getName', () => { function: reverse(bytes reverseName) args: (0x) - Version: viem@2.9.2] + Version: 2.21.12] `) }) it('should not return unnormalised name', async () => { diff --git a/packages/ensjs/src/functions/public/getRecords.test.ts b/packages/ensjs/src/functions/public/getRecords.test.ts index f91655f0..d8c9621b 100644 --- a/packages/ensjs/src/functions/public/getRecords.test.ts +++ b/packages/ensjs/src/functions/public/getRecords.test.ts @@ -146,7 +146,7 @@ describe('getRecords()', () => { args: (0x04746573740365746800, ["0x5678"]) Docs: https://viem.sh/docs/contract/decodeErrorResult - Version: viem@2.9.2] + Version: 2.21.12] `) }) }) diff --git a/packages/ensjs/src/functions/public/getTextRecord.test.ts b/packages/ensjs/src/functions/public/getTextRecord.test.ts index 6151ef54..fe9f527a 100644 --- a/packages/ensjs/src/functions/public/getTextRecord.test.ts +++ b/packages/ensjs/src/functions/public/getTextRecord.test.ts @@ -58,7 +58,7 @@ describe('getTextRecord()', () => { function: resolve(bytes name, bytes data) args: (0x, 0x) - Version: viem@2.9.2] + Version: 2.21.12] `) }) }) diff --git a/packages/ensjs/src/functions/public/universalWrapper.test.ts b/packages/ensjs/src/functions/public/universalWrapper.test.ts index 273aca85..04397d55 100644 --- a/packages/ensjs/src/functions/public/universalWrapper.test.ts +++ b/packages/ensjs/src/functions/public/universalWrapper.test.ts @@ -73,7 +73,7 @@ it('throws on result decode error when strict is true', async () => { Params: (bytes data, address resolver) Data: 0x1234 (2 bytes) - Version: viem@2.9.2] + Version: 2.21.12] `) }) @@ -116,7 +116,7 @@ it('throws on known contract error when strict is true', async () => { function: resolve(bytes name, bytes data) args: (0x, 0x) - Version: viem@2.9.2] + Version: 2.21.12] `) }) @@ -147,7 +147,7 @@ it('throws on unknown contract error when strict is false', async () => { args: (0x, 0x) Docs: https://viem.sh/docs/contract/decodeErrorResult - Version: viem@2.9.2] + Version: 2.21.12] `) }) @@ -178,6 +178,6 @@ it('throws on unknown contract error when strict is true', async () => { args: (0x, 0x) Docs: https://viem.sh/docs/contract/decodeErrorResult - Version: viem@2.9.2] + Version: 2.21.12] `) }) diff --git a/packages/ensjs/src/utils/checkSafeUniversalResolverData.test.ts b/packages/ensjs/src/utils/checkSafeUniversalResolverData.test.ts index 43e101bb..ea476b3a 100644 --- a/packages/ensjs/src/utils/checkSafeUniversalResolverData.test.ts +++ b/packages/ensjs/src/utils/checkSafeUniversalResolverData.test.ts @@ -69,7 +69,7 @@ describe('checkSafeUniversalResolverData', () => { function: resolve(bytes name, bytes data) args: (0x, 0x) - Version: viem@2.9.2] + Version: 2.21.12] `) }) @@ -97,7 +97,7 @@ describe('checkSafeUniversalResolverData', () => { function: resolve(bytes name, bytes data) args: (ab, cd) - Version: viem@2.9.2] + Version: 2.21.12] `) }) @@ -129,7 +129,7 @@ describe('checkSafeUniversalResolverData', () => { args: (0x, 0x) Docs: https://viem.sh/docs/contract/decodeErrorResult - Version: viem@2.9.2] + Version: 2.21.12] `) }) @@ -161,7 +161,7 @@ describe('checkSafeUniversalResolverData', () => { args: (0x, 0x) Docs: https://viem.sh/docs/contract/decodeErrorResult - Version: viem@2.9.2] + Version: 2.21.12] `) }) })