Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrutter committed Feb 7, 2025
1 parent 7e3f7c5 commit 897a607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const handler413: Handler = (_request, response) => {
response.end();
};

const createSocketTimeoutStream = (url): http.ClientRequest => {
const createSocketTimeoutStream = (url: string): http.ClientRequest => {
if (url.indexOf("https:") > -1) {

Check failure on line 26 in test/retry.ts

View workflow job for this annotation

GitHub Actions / Node.js 20 on macos-latest

Use 'includes()' method instead.

Check failure on line 26 in test/retry.ts

View workflow job for this annotation

GitHub Actions / Node.js 20 on macos-latest

Use `.includes()`, rather than `.indexOf()`, when checking for existence.

Check failure on line 26 in test/retry.ts

View workflow job for this annotation

GitHub Actions / Node.js 20 on macos-latest

Strings must use singlequote.
return https.request(url, {
timeout: 1

Check failure on line 28 in test/retry.ts

View workflow job for this annotation

GitHub Actions / Node.js 20 on macos-latest

Mixed spaces and tabs.

Check failure on line 28 in test/retry.ts

View workflow job for this annotation

GitHub Actions / Node.js 20 on macos-latest

Missing trailing comma.
Expand Down

0 comments on commit 897a607

Please sign in to comment.