mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-26 23:48:51 +00:00
๐ fix find issue
This commit is contained in:
parent
a57b4690ec
commit
3c38ed8cd4
5 changed files with 9 additions and 9 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loadingโฆ
Add table
Add a link
Reference in a new issue