Skip to content

Commit

Permalink
chore: update test mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Jul 22, 2024
1 parent f3109fc commit eb28855
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/__mocks__/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export const db = factory({
number: Number,
html_url: String,
state: String,
body: nullable(String),
repository: {
full_name: String,
},
Expand Down
5 changes: 4 additions & 1 deletion tests/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit eb28855

Please sign in to comment.