Skip to content

Commit 33342d9

Browse files
committed
remove node-fetch
1 parent 4e462a8 commit 33342d9

File tree

4 files changed

+1
-14
lines changed

4 files changed

+1
-14
lines changed

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"codecov": "3.8.3",
4444
"cpy": "10.1.0",
4545
"fetch-mock": "npm:@gr2m/[email protected]",
46-
"node-fetch": "2.6.11",
4746
"prettier": "2.4.1",
4847
"proxy": "1.0.2",
4948
"proxyquire": "2.1.3",

test/integration.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ test("Comment and add labels on PR included in the releases", async (t) => {
422422
full_name: `${owner}/${repo}`,
423423
},
424424
{
425-
// TODO: why?
425+
// TODO: why do we call the same endpoint twice?
426426
repeat: 2,
427427
}
428428
)

test/to-octokit-options.test.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1-
import { join, dirname } from "node:path";
2-
import { createServer } from "node:http";
31
import { createServer as _createServer } from "node:https";
4-
import { promisify } from "node:util";
5-
import { fileURLToPath } from "node:url";
6-
import { readFile } from "node:fs/promises";
72

8-
import Proxy from "proxy";
9-
import serverDestroy from "server-destroy";
10-
import sinon from "sinon";
113
import test from "ava";
124
import { HttpProxyAgent } from "http-proxy-agent";
135
import { HttpsProxyAgent } from "https-proxy-agent";
14-
import nodeFetch from "node-fetch";
15-
16-
const __dirname = dirname(fileURLToPath(import.meta.url));
176

187
import { toOctokitOptions } from "../lib/octokit.js";
198

0 commit comments

Comments
 (0)