Skip to content

Commit 8dbd904

Browse files
authored
Apply suggestions from code review
1 parent 22c66a6 commit 8dbd904

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/test_helpers/handlers.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ export const handlers = [
4444
rest.get("/api/v2/workspaces/:workspaceId", async (req, res, ctx) => {
4545
return res(ctx.status(200), ctx.json(M.MockWorkspace))
4646
}),
47-
rest.get("/api/v2/workspaces/:workspaceId/autostart", async (req, res, ctx) => {
47+
rest.put("/api/v2/workspaces/:workspaceId/autostart", async (req, res, ctx) => {
4848
return res(ctx.status(200))
4949
}),
50-
rest.get("/api/v2/workspaces/:workspaceId/autostop", async (req, res, ctx) => {
50+
rest.put("/api/v2/workspaces/:workspaceId/autostop", async (req, res, ctx) => {
5151
return res(ctx.status(200))
5252
}),
5353
]

0 commit comments

Comments
 (0)