Skip to content

Commit

Permalink
improve test error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gershido committed Sep 14, 2024
1 parent cb10b7d commit 52bc94d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/arbitrumDeployments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/baseDeployments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/celoDeployments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/gnosisDeployments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/mainnetDeployments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/optimismDeployments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/polygonDeployments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/sepoliaDeployments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
);
}
}
Expand Down

0 comments on commit 52bc94d

Please sign in to comment.