Skip to content

Commit c124c40

Browse files
committed
Merge branch 'mt/scrum-138-child-139-backendTesting-timetablesController' of https://github.com/UTSC-CSCC01-Software-Engineering-I/term-group-project-c01w25-project-course-matrix into mt/scrum-138-child-139-backendTesting-timetablesController
2 parents 663200a + 7bd1d64 commit c124c40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

course-matrix/backend/__tests__/timetablesController.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jest.mock("@ai-sdk/openai", () => ({
2424

2525
jest.mock("ai", () => ({
2626
streamText: jest.fn(() =>
27-
Promise.resolve({ pipeDataStreamToResponse: jest.fn() })
27+
Promise.resolve({ pipeDataStreamToResponse: jest.fn() }),
2828
),
2929
}));
3030

@@ -202,7 +202,7 @@ describe("GET /api/timetables", () => {
202202
(
203203
authHandler as jest.MockedFunction<typeof authHandler>
204204
).mockImplementationOnce(
205-
mockAuthHandler("testuser01-ab9e6877-f603-4c6a-9832-864e520e4d01")
205+
mockAuthHandler("testuser01-ab9e6877-f603-4c6a-9832-864e520e4d01"),
206206
);
207207

208208
const response = await request(app).get("/api/timetables");
@@ -217,7 +217,7 @@ describe("GET /api/timetables", () => {
217217
(
218218
authHandler as jest.MockedFunction<typeof authHandler>
219219
).mockImplementationOnce(
220-
mockAuthHandler("testuser02-1d3f02df-f926-4c1f-9f41-58ca50816a33")
220+
mockAuthHandler("testuser02-1d3f02df-f926-4c1f-9f41-58ca50816a33"),
221221
);
222222

223223
const response = await request(app).get("/api/timetables");

0 commit comments

Comments
 (0)