CFE-26 rendering test and some change in callTabsList

This commit is contained in:
2023-10-15 14:17:10 +03:30
parent 4cabe9d171
commit ab29954941
10 changed files with 141 additions and 7 deletions

View File

@@ -1,4 +1,10 @@
import {GET_PERMISSIONS_LIST, GET_ROLE_MANAGEMENT, GET_USER_ROUTE, SET_USER_PASSWORD} from "@/core/data/apiRoutes";
import {
GET_PERMISSIONS_LIST,
GET_ROLE_MANAGEMENT,
GET_TAB_DETAILS,
GET_USER_ROUTE,
SET_USER_PASSWORD
} from "@/core/data/apiRoutes";
import {rest} from "msw";
export const handler = [
@@ -84,5 +90,20 @@ export const handler = [
),
);
}),
rest.get(`${GET_TAB_DETAILS}/:id`, (req,res, ctx) =>{
const {id} = req.params
if(id == 1){
return res(
ctx.json(
{
data : {
phone_number : "09134849737",
date : "2023-10-10T13:03:18.000000Z"
}
}
)
)
}
})
]