We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.defaults()
1 parent 25bf33f commit 6b91e52Copy full SHA for 6b91e52
test/typescript.test.ts
@@ -50,4 +50,13 @@ describe("Smoke test", () => {
50
"https://api.github.com/repos/foo/bar/contents/path%2Fto%2Fbinary%2Ffile"
51
);
52
});
53
+
54
+ it(".defaults()", async () => {
55
+ const MyOctokit = Octokit.plugin(restEndpointMethods);
56
+ const octokit = new MyOctokit();
57
58
+ const myRequest = octokit.repos.getContents.defaults({ method: "HEAD" });
59
60
+ expect(myRequest.endpoint.DEFAULTS.method).toEqual("HEAD");
61
+ });
62
0 commit comments