Skip to content

Commit 9cdd7dd

Browse files
committed
test: update error message expectations in dlx-binary tests
Updated test expectations to match improved user-friendly error messages. Changed from "HTTP 404/500" format to "Failed to download binary from" pattern.
1 parent b3ab4f8 commit 9cdd7dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/dlx-binary.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ describe.sequential('dlx-binary', () => {
245245
name: 'not-found-binary',
246246
url,
247247
}),
248-
).rejects.toThrow(/Download failed: HTTP 404/)
248+
).rejects.toThrow(/Failed to download binary from/)
249249
} finally {
250250
restoreHome()
251251
}
@@ -264,7 +264,7 @@ describe.sequential('dlx-binary', () => {
264264
name: 'error-binary',
265265
url,
266266
}),
267-
).rejects.toThrow(/Download failed: HTTP 500/)
267+
).rejects.toThrow(/Failed to download binary from/)
268268
} finally {
269269
restoreHome()
270270
}

0 commit comments

Comments
 (0)