Skip to content

Commit

Permalink
test: remove obsolete test for deprecated endpoint methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jan 31, 2020
1 parent b18cfb2 commit 3774640
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/rest-endpoint-methods.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,7 @@ describe("REST API endpoint methods", () => {
expect(data).toStrictEqual({ ok: true });
});

it("deprecated endpoint methods have .endpoint() method, too", () => {
const MyOctokit = Octokit.plugin(restEndpointMethods);
const octokit = new MyOctokit();
expect(typeof octokit.teams.listMembersLegacy.endpoint).toEqual("function");
});

it.only("octokit.repos.uploadReleaseAsset()", async () => {
it("octokit.repos.uploadReleaseAsset()", async () => {
const mock = fetchMock.sandbox().postOnce(
"https://uploads.github.com/repos/octocat/hello-world/releases/123/assets",
{ ok: true },
Expand Down

0 comments on commit 3774640

Please sign in to comment.