Skip to content

Commit

Permalink
test: Verify, release and notify success fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
babblebey committed Aug 29, 2024
1 parent ba214de commit 50c3f9c
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,29 +682,22 @@ test("Verify, release and notify success", async (t) => {
repeat: 2,
},
)
.postOnce(
(url, { body }) => {
t.is(url, "https://api.github.local/graphql");
t.regex(JSON.parse(body).query, /query getAssociatedPRs\(/);
return true;
},
{
data: {
repository: {
commit123: {
oid: "123",
associatedPullRequests: {
pageInfo: {
endCursor: "NI",
hasNextPage: false,
},
nodes: [prs[0]],
.postOnce("https://api.github.local/graphql", {
data: {
repository: {
commit123: {
oid: "123",
associatedPullRequests: {
pageInfo: {
endCursor: "NI",
hasNextPage: false,
},
nodes: [prs[0]],
},
},
},
},
)
})
.postOnce(
`https://api.github.local/repos/${owner}/${repo}/releases`,
{
Expand Down Expand Up @@ -737,8 +730,7 @@ test("Verify, release and notify success", async (t) => {
{ body: ["released"] },
)
.postOnce(
(url, { body }) => {
t.is(url, "https://api.github.local/graphql");
(_, { body }) => {
t.regex(JSON.parse(body).query, /query getSRIssues\(/);
return true;
},
Expand Down

0 comments on commit 50c3f9c

Please sign in to comment.