CFE-26 rendering test and some change in callTabsList
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
})
|
||||
]
|
||||
Reference in New Issue
Block a user