LFFE-14 Create test for first page

This commit is contained in:
AmirHossein Mahmoodi
2023-11-05 11:50:41 +03:30
parent 46d6dc6bb6
commit 374c6a4d6b
9 changed files with 115 additions and 29 deletions

19
mocks/handlers/user.js Normal file
View File

@@ -0,0 +1,19 @@
import {rest} from "msw";
import {GET_USER_ROUTE} from "@/core/data/apiRoutes";
export const userHandler = [
rest.get(GET_USER_ROUTE, (req, res, ctx) => {
return res(ctx.json({
data: {
id: 10,
full_name: "Witel Company",
position: "Software Engineer",
permissions: [
"manage_users",
"manage_roles",
"manage_boss"
],
}
}))
}),
]