We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
response.ok
1 parent ff66d30 commit 3e86602Copy full SHA for 3e86602
packages/compass-smoke-tests/src/downloads.ts
@@ -21,6 +21,10 @@ export async function downloadFile({
21
}: DownloadFileOptions): Promise<string> {
22
const response = await fetch(url);
23
24
+ assert(
25
+ response.ok,
26
+ `Request failed with status ${response.status} (${response.statusText})`
27
+ );
28
const etag = response.headers.get('etag');
29
assert(etag, 'Expected an ETag header');
30
const cleanEtag = etag.match(/[0-9a-fA-F]/g)?.join('');
0 commit comments