Merge pull request #7 from gnsJhenJie/patch-1

Fix typo in todo.spec.ts
This commit is contained in:
YuBin, Hsu
2025-03-25 19:31:57 +08:00
committed by GitHub

View File

@@ -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