Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Jan 10, 2024
1 parent 832e61a commit a967485
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/api/routes/__test__/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ describe("API", () => {
const { get } = createRequestHelpers(ctx.port)
getCompletions = (slug: string, registered = false) =>
get(
`/api/completions/${slug}${registered ? `?registered=${registered}` : ""
`/api/completions/${slug}${
registered ? `?registered=${registered}` : ""
}`,
{},
)
Expand Down Expand Up @@ -105,7 +106,7 @@ describe("API", () => {
])
})

it("returns correctly on course when registered query parameter is set, skipping duplicate completions", async () => {
it("returns correctly on course when registered query parameter is set, not skipping duplicate completions", async () => {
const res = await getCompletions(
"course1",
true,
Expand All @@ -117,6 +118,7 @@ describe("API", () => {
"12400000-0000-0000-0000-000000000001",
"30000000-0000-0000-0000-000000000102",
"30000000-0000-0000-0000-000000000104",
"30000000-0000-0000-0000-000000000105",
"30000000-0000-0000-0000-000000000106",
])
})
Expand Down

0 comments on commit a967485

Please sign in to comment.