diff --git a/tests/__mocks__/db.ts b/tests/__mocks__/db.ts index 0dfc552f..b80175e1 100644 --- a/tests/__mocks__/db.ts +++ b/tests/__mocks__/db.ts @@ -146,6 +146,7 @@ export const db = factory({ number: Number, html_url: String, state: String, + body: nullable(String), repository: { full_name: String, }, diff --git a/tests/main.test.ts b/tests/main.test.ts index 019d5343..012e9e42 100644 --- a/tests/main.test.ts +++ b/tests/main.test.ts @@ -113,7 +113,7 @@ describe("User start/stop", () => { const output = await userStartStop(context as unknown as Context); - expect(output).toEqual({ output: "No assignees found for this task" }); + expect(output).toEqual({ output: "You are not assigned to this task" }); }); test("User can't start an issue that's already assigned", async () => { @@ -458,6 +458,7 @@ async function setupTests() { issue: { number: 10, state: "open", + body: `Resolves #2`, html_url: "https://github.com/ubiquity/test-repo/pull/10", repository: { full_name: TEST_REPO, @@ -485,6 +486,7 @@ async function setupTests() { issue: { number: 2, state: "open", + body: `Resolves #2`, html_url: "http://github.com/ubiquity/test-repo/pull/2", repository: { full_name: TEST_REPO, @@ -512,6 +514,7 @@ async function setupTests() { issue: { number: 3, state: "open", + body: `Resolves #2`, html_url: "http://github.com/ubiquity/test-repo/pull/3", repository: { full_name: TEST_REPO,