Skip to content

Commit 93e01b5

Browse files
committed
fix: tests
1 parent c2424ec commit 93e01b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

projects/lib/specs/schematics.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ describe('schematics', () => {
5252

5353
it('helper: getSchematicSchemaOptions - non existing package external', async () => {
5454
const test$ = getSchematicSchemaOptions(context, 'sentry', '@hug/non-existing-package', true, 0);
55-
await expectAsync(test$).toBeRejectedWithError('Request error (404): https://cdn.jsdelivr.net//npm/@hug/non-existing-package@latest/package.json');
55+
await expectAsync(test$).toBeRejectedWithError('Request error (404): https://cdn.jsdelivr.net/npm/@hug/non-existing-package@latest/package.json');
5656
});
5757
});

projects/lib/src/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const getDataFromUrl = async (url: string | URL, retries = 3, backoff = 3
3131
} else {
3232
res.removeAllListeners();
3333
res.resume(); // consume response data to free up memory
34-
reject(new Error(`Request error (${String(res.statusCode)}): https://${hostname}/${pathname}`));
34+
reject(new Error(`Request error (${String(res.statusCode)}): https://${hostname}${pathname}`));
3535
}
3636
});
3737
const abort = (error: Error | string): void => {

0 commit comments

Comments
 (0)