From d6e7ed73c2407b8af98328505690209b48aa37e4 Mon Sep 17 00:00:00 2001 From: Jhen-Jie Hsieh Date: Sun, 23 Mar 2025 22:58:02 +0800 Subject: [PATCH] fix: Fix typo Fix typo in comment --- backend/test/todo.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/test/todo.spec.ts b/backend/test/todo.spec.ts index bdc317d..c7348d6 100644 --- a/backend/test/todo.spec.ts +++ b/backend/test/todo.spec.ts @@ -10,7 +10,7 @@ describe('Todo API Testing', () => { }) test('Given an empty array return from repo function, When send a GET request to /api/v1/todos, Then it should response an empty array', async () => { - // assert: stub the repo function to return an empty array + // arrange: stub the repo function to return an empty array vi.spyOn(TodoRepo, 'findAllTodos').mockImplementation(async () => []) // act: send a GET request to /api/v1/todos