Skip to content

Commit b68566f

Browse files
kevinccbsgclaude
andcommitted
fix: use 204 for DELETE response in contract and mock
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 153ce4a commit b68566f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

contracts/todos-3.0.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@
6464
}
6565
],
6666
"responses": {
67-
"200": {
68-
"description": "Todo deleted",
69-
"content": {}
67+
"204": {
68+
"description": "Todo deleted"
7069
}
7170
}
7271
}

src/twd-tests/todoList.twd.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe("Todo List Page", () => {
9393
method: "DELETE",
9494
url: "/api/todos/1",
9595
response: null,
96-
status: 200,
96+
status: 204,
9797
});
9898
await twd.mockRequest("getTodoList", {
9999
method: "GET",

0 commit comments

Comments
 (0)