Skip to content

Commit 3774640

Browse files
committed
test: remove obsolete test for deprecated endpoint methods
1 parent b18cfb2 commit 3774640

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/rest-endpoint-methods.test.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,7 @@ describe("REST API endpoint methods", () => {
6262
expect(data).toStrictEqual({ ok: true });
6363
});
6464

65-
it("deprecated endpoint methods have .endpoint() method, too", () => {
66-
const MyOctokit = Octokit.plugin(restEndpointMethods);
67-
const octokit = new MyOctokit();
68-
expect(typeof octokit.teams.listMembersLegacy.endpoint).toEqual("function");
69-
});
70-
71-
it.only("octokit.repos.uploadReleaseAsset()", async () => {
65+
it("octokit.repos.uploadReleaseAsset()", async () => {
7266
const mock = fetchMock.sandbox().postOnce(
7367
"https://uploads.github.com/repos/octocat/hello-world/releases/123/assets",
7468
{ ok: true },

0 commit comments

Comments
 (0)