Skip to content

Commit 25b94dd

Browse files
committed
test: deprecated endpoint methods have .endpoint() method, too
1 parent c38cbb9 commit 25b94dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/rest-endpoint-methods.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,10 @@ describe("REST API endpoint methods", () => {
6161

6262
expect(data).toStrictEqual({ ok: true });
6363
});
64+
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+
});
6470
});

0 commit comments

Comments
 (0)