Skip to content

Commit 04c33b6

Browse files
minhhaitran08github-actions[bot]
authored andcommitted
Auto-formatted the code using Prettier
1 parent 3e93638 commit 04c33b6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

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

2929
jest.mock("ai", () => ({
3030
streamText: jest.fn(() =>
31-
Promise.resolve({ pipeDataStreamToResponse: jest.fn() })
31+
Promise.resolve({ pipeDataStreamToResponse: jest.fn() }),
3232
),
3333
}));
3434

@@ -299,7 +299,7 @@ describe("GET /api/timetables/restrictions/:id", () => {
299299
(
300300
authHandler as jest.MockedFunction<typeof authHandler>
301301
).mockImplementationOnce(
302-
mockAuthHandler("testuser04-f84fd0da-d775-4424-ad88-d9675282453c")
302+
mockAuthHandler("testuser04-f84fd0da-d775-4424-ad88-d9675282453c"),
303303
);
304304

305305
const response = await request(app).get("/api/timetables/restrictions/1");
@@ -314,7 +314,7 @@ describe("GET /api/timetables/restrictions/:id", () => {
314314
(
315315
authHandler as jest.MockedFunction<typeof authHandler>
316316
).mockImplementationOnce(
317-
mockAuthHandler("testuser03-f84fd0da-d775-4424-ad88-d9675282453c")
317+
mockAuthHandler("testuser03-f84fd0da-d775-4424-ad88-d9675282453c"),
318318
);
319319

320320
const response = await request(app).get("/api/timetables/restrictions/1");
@@ -515,7 +515,7 @@ describe("DELETE /api/timetables/:id", () => {
515515
).mockImplementationOnce(mockAuthHandler(user_id));
516516

517517
const response = await request(app).delete(
518-
"/api/timetables/restrictions/1?calendar_id=1"
518+
"/api/timetables/restrictions/1?calendar_id=1",
519519
);
520520

521521
// Check that the `update` method was called
@@ -535,7 +535,7 @@ describe("DELETE /api/timetables/:id", () => {
535535
).mockImplementationOnce(mockAuthHandler(user_id));
536536

537537
const response = await request(app).delete(
538-
"/api/timetables/restrictions/1?calendar_id=1"
538+
"/api/timetables/restrictions/1?calendar_id=1",
539539
);
540540

541541
// Check that the `update` method was called

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)