diff options
| author | ST-DDT <[email protected]> | 2024-11-25 21:38:00 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-11-25 20:38:00 +0000 |
| commit | 361ece68e55880506f5244818f2a19b6efb06603 (patch) | |
| tree | a443258a08ada45474fdd0d422b161541be5eb0c /test | |
| parent | e0fb23ef81009f565676485d63b6fe97afd8a31e (diff) | |
| download | faker-361ece68e55880506f5244818f2a19b6efb06603.tar.xz faker-361ece68e55880506f5244818f2a19b6efb06603.zip | |
test(image): improve error text (#3278)
Diffstat (limited to 'test')
| -rw-r--r-- | test/integration/modules/image.spec.ts | 4 |
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}'` ) ); } |
