Skip to content

Commit af411be

Browse files
committed
Include mock of new api route
1 parent 48f6d30 commit af411be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

site/src/testHelpers/handlers.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ export const handlers = [
134134
rest.post("/api/v2/users", async (req, res, ctx) => {
135135
return res(ctx.status(200), ctx.json(M.MockUser))
136136
}),
137+
rest.post("/api/v2/users/me/login-type", async (req, res, ctx) => {
138+
return res(ctx.status(200), ctx.json({
139+
login_type: "password",
140+
}))
141+
}),
137142
rest.get("/api/v2/users/me/organizations", (req, res, ctx) => {
138143
return res(ctx.status(200), ctx.json([M.MockOrganization]))
139144
}),

0 commit comments

Comments
 (0)