From 52bc94d4a62e0ff1d53704fb787e4cfdc5521788 Mon Sep 17 00:00:00 2001 From: Ido Date: Sat, 14 Sep 2024 15:33:58 +0300 Subject: [PATCH] improve test error messages --- test/arbitrumDeployments.test.ts | 2 +- test/baseDeployments.test.ts | 2 +- test/celoDeployments.test.ts | 2 +- test/gnosisDeployments.test.ts | 2 +- test/mainnetDeployments.test.ts | 2 +- test/optimismDeployments.test.ts | 2 +- test/polygonDeployments.test.ts | 2 +- test/sepoliaDeployments.test.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/arbitrumDeployments.test.ts b/test/arbitrumDeployments.test.ts index d80aeed..c13b924 100644 --- a/test/arbitrumDeployments.test.ts +++ b/test/arbitrumDeployments.test.ts @@ -156,7 +156,7 @@ describe("Arbitrum deployments", () => { if (res === undefined || res.length !== module?.parameters.length) { throw new Error( - "Error: could not read all the module's parameters from the instance", + `Error: could not read all parameters from the instance of module ${module?.name}`, ); } } diff --git a/test/baseDeployments.test.ts b/test/baseDeployments.test.ts index 0d3f987..b25baff 100644 --- a/test/baseDeployments.test.ts +++ b/test/baseDeployments.test.ts @@ -156,7 +156,7 @@ describe("Base deployments", () => { if (res === undefined || res.length !== module?.parameters.length) { throw new Error( - "Error: could not read all the module's parameters from the instance", + `Error: could not read all parameters from the instance of module ${module?.name}`, ); } } diff --git a/test/celoDeployments.test.ts b/test/celoDeployments.test.ts index 7b3e251..a654915 100644 --- a/test/celoDeployments.test.ts +++ b/test/celoDeployments.test.ts @@ -156,7 +156,7 @@ describe("Celo deployments", () => { if (res === undefined || res.length !== module?.parameters.length) { throw new Error( - "Error: could not read all the module's parameters from the instance", + `Error: could not read all parameters from the instance of module ${module?.name}`, ); } } diff --git a/test/gnosisDeployments.test.ts b/test/gnosisDeployments.test.ts index 8d8c603..b3e0243 100644 --- a/test/gnosisDeployments.test.ts +++ b/test/gnosisDeployments.test.ts @@ -156,7 +156,7 @@ describe("Gnosis deployments", () => { if (res === undefined || res.length !== module?.parameters.length) { throw new Error( - "Error: could not read all the module's parameters from the instance", + `Error: could not read all parameters from the instance of module ${module?.name}`, ); } } diff --git a/test/mainnetDeployments.test.ts b/test/mainnetDeployments.test.ts index c059b72..03bf143 100644 --- a/test/mainnetDeployments.test.ts +++ b/test/mainnetDeployments.test.ts @@ -156,7 +156,7 @@ describe("Mainnet deployments", () => { if (res === undefined || res.length !== module?.parameters.length) { throw new Error( - "Error: could not read all the module's parameters from the instance", + `Error: could not read all parameters from the instance of module ${module?.name}`, ); } } diff --git a/test/optimismDeployments.test.ts b/test/optimismDeployments.test.ts index 9dbec8d..b099a67 100644 --- a/test/optimismDeployments.test.ts +++ b/test/optimismDeployments.test.ts @@ -156,7 +156,7 @@ describe("Optimism deployments", () => { if (res === undefined || res.length !== module?.parameters.length) { throw new Error( - "Error: could not read all the module's parameters from the instance", + `Error: could not read all parameters from the instance of module ${module?.name}`, ); } } diff --git a/test/polygonDeployments.test.ts b/test/polygonDeployments.test.ts index 584b3a0..7daf3b7 100644 --- a/test/polygonDeployments.test.ts +++ b/test/polygonDeployments.test.ts @@ -156,7 +156,7 @@ describe("Polygon deployments", () => { if (res === undefined || res.length !== module?.parameters.length) { throw new Error( - "Error: could not read all the module's parameters from the instance", + `Error: could not read all parameters from the instance of module ${module?.name}`, ); } } diff --git a/test/sepoliaDeployments.test.ts b/test/sepoliaDeployments.test.ts index 34ed87e..db2bc32 100644 --- a/test/sepoliaDeployments.test.ts +++ b/test/sepoliaDeployments.test.ts @@ -159,7 +159,7 @@ describe("Sepolia deployments", () => { if (res === undefined || res.length !== module?.parameters.length) { throw new Error( - "Error: could not read all the module's parameters from the instance", + `Error: could not read all parameters from the instance of module ${module?.name}`, ); } }