Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Feb 14, 2025
1 parent 300e34d commit d846509
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const request = require("request");

(async () => {
await new Promise((resolve, reject) => {
request.get("https://example.vercel.sh", { json: false }, (err, resp, body) => {
request.get("https://example.vercel.sh", { json: false }, (err, res) => {
if (err) return reject(err);
if (body.status != "success") {
return reject(new Error(`Bad status: ${body.status}`));
if (res.statusCode !== 200) {
return reject(new Error(`Bad status: ${res.statusCode}`));
}
resolve(true);
});
Expand Down

0 comments on commit d846509

Please sign in to comment.