aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2024-11-25 21:38:00 +0100
committerGitHub <[email protected]>2024-11-25 20:38:00 +0000
commit361ece68e55880506f5244818f2a19b6efb06603 (patch)
treea443258a08ada45474fdd0d422b161541be5eb0c /test
parente0fb23ef81009f565676485d63b6fe97afd8a31e (diff)
downloadfaker-361ece68e55880506f5244818f2a19b6efb06603.tar.xz
faker-361ece68e55880506f5244818f2a19b6efb06603.zip
test(image): improve error text (#3278)
Diffstat (limited to 'test')
-rw-r--r--test/integration/modules/image.spec.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/modules/image.spec.ts b/test/integration/modules/image.spec.ts
index 0901b99b..13b37a70 100644
--- a/test/integration/modules/image.spec.ts
+++ b/test/integration/modules/image.spec.ts
@@ -30,7 +30,7 @@ async function assertWorkingUrl(address: string): Promise<void> {
https
.get(address, ({ statusCode, headers: { location } }) => {
if (statusCode == null) {
- reject(new Error(`No StatusCode, expected 200`));
+ reject(new Error(`No StatusCode, expected 200 for '${address}'`));
} else if (statusCode === 200) {
resolve(true);
} else if (statusCode >= 300 && statusCode < 400 && location) {
@@ -47,7 +47,7 @@ async function assertWorkingUrl(address: string): Promise<void> {
} else {
reject(
new Error(
- `Bad StatusCode ${statusCode} expected 200 for '${location}'`
+ `Bad StatusCode ${statusCode} expected 200 for '${address}'`
)
);
}