Skip to content

Commit

Permalink
style: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Create or Update Pull Request Action committed Jul 5, 2023
1 parent d59b0c6 commit f0065e2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ const { lastIssues } = await octokit.graphql(
{
owner: "octokit",
repo: "graphql.js",
}
},
);
```

Expand All @@ -641,7 +641,7 @@ await octokit.graphql(
mediaType: {
previews: ["bane"],
},
}
},
);
```

Expand Down Expand Up @@ -790,7 +790,7 @@ const { token } = await app.oauth.createToken({
async onVerification(verification) {
await sendMessageToUser(
request.body.phoneNumber,
`Your code is ${verification.user_code}. Enter it at ${verification.verification_uri}`
`Your code is ${verification.user_code}. Enter it at ${verification.verification_uri}`,
);
},
});
Expand Down
6 changes: 3 additions & 3 deletions src/octokit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Octokit = OctokitCore.plugin(
restEndpointMethods,
paginateRest,
retry,
throttling
throttling,
).defaults({
userAgent: `octokit.js/${VERSION}`,
throttle: {
Expand All @@ -24,7 +24,7 @@ export const Octokit = OctokitCore.plugin(
// istanbul ignore next no need to test internals of the throttle plugin
function onRateLimit(retryAfter: number, options: any, octokit: any) {
octokit.log.warn(
`Request quota exhausted for request ${options.method} ${options.url}`
`Request quota exhausted for request ${options.method} ${options.url}`,
);

if (options.request.retryCount === 0) {
Expand All @@ -37,7 +37,7 @@ function onRateLimit(retryAfter: number, options: any, octokit: any) {
// istanbul ignore next no need to test internals of the throttle plugin
function onSecondaryRateLimit(retryAfter: number, options: any, octokit: any) {
octokit.log.warn(
`SecondaryRateLimit detected for request ${options.method} ${options.url}`
`SecondaryRateLimit detected for request ${options.method} ${options.url}`,
);

if (options.request.retryCount === 0) {
Expand Down
14 changes: 7 additions & 7 deletions test/app.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe("App", () => {
headers: {
authorization: `bearer ${BEARER}`,
},
}
},
)
.postOnce(
"path:/app/installations/123/access_tokens",
Expand All @@ -97,7 +97,7 @@ describe("App", () => {
headers: {
authorization: `bearer ${BEARER}`,
},
}
},
)
.getOnce("path:/installation/repositories", {
total_count: 1,
Expand Down Expand Up @@ -148,7 +148,7 @@ describe("App", () => {
headers: {
authorization: `bearer ${BEARER}`,
},
}
},
)
.postOnce(
"path:/repos/octokit/octokit.js/issues",
Expand All @@ -157,7 +157,7 @@ describe("App", () => {
body: {
title: "Hello, world!",
},
}
},
);
const octokit = await app.getInstallationOctokit(123);

Expand Down Expand Up @@ -189,7 +189,7 @@ describe("App", () => {
headers: {
authorization: `bearer ${BEARER}`,
},
}
},
)
.postOnce(
"path:/repos/octokit/octokit.js/issues/1/comments",
Expand All @@ -198,7 +198,7 @@ describe("App", () => {
body: {
body: "Hello, World!",
},
}
},
);

app.webhooks.on("issues.opened", async ({ octokit, payload }) => {
Expand Down Expand Up @@ -240,7 +240,7 @@ describe("App", () => {
"x-hub-signature-256": await app.webhooks.sign(issuePayload),
},
body: issuePayload,
}
},
);

expect(await response.text()).toEqual("ok\n");
Expand Down
4 changes: 2 additions & 2 deletions test/smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("Smoke tests", () => {
new App({
appId: 123,
privateKey: "private key here",
})
}),
).not.toThrow();
});

Expand All @@ -40,7 +40,7 @@ describe("Smoke tests", () => {
new OAuthApp({
clientId: "",
clientSecret: "",
})
}),
).not.toThrow();
});

Expand Down
2 changes: 1 addition & 1 deletion test/typescript-validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function OctokitTest() {
{
owner: "",
repo: "",
}
},
);
expect<number>(issues[0].id);

Expand Down

0 comments on commit f0065e2

Please sign in to comment.