๐Ÿ› fix find issue

This commit is contained in:
marocchino 2021-10-21 01:20:15 +09:00
parent a57b4690ec
commit 3c38ed8cd4
No known key found for this signature in database
GPG key ID: DEFF05E6B5B0FF97
5 changed files with 9 additions and 9 deletions

View file

@ -18,9 +18,12 @@ const repo = {
repo: "sticky-pull-request-comment"
}
it("findPreviousComment", async () => {
const authenticatedUser = {
const authenticatedBotUser = {
login: "github-actions[bot]"
}
const authenticatedUser = {
login: "github-actions"
}
const otherUser = {
login: "some-user"
}
@ -64,7 +67,7 @@ it("findPreviousComment", async () => {
]
const octokit = getOctokit("github-token")
jest.spyOn(octokit, "graphql").mockResolvedValue({
viewer: authenticatedUser,
viewer: authenticatedBotUser,
repository: {
pullRequest: {
comments: {