2
Mon Oct 17 2022 02:18:44 GMT+0000 (Coordinated Universal Time)
Saved by
@Vrushabh_123
axios.get.mockImplementation(() => Promise((resolve, reject) => {
resolve({
response: {
data: {
name: "Ubuntu",
age: 22
}
}
});
}))
axios.get.mockImplementation(() =>
Promise.resolve({
response: {
data: {
name: "Ubuntu",
age: 22
}
}
})
);
Promise.reject({ value: "something })
axios.get.mockResolves(() => ({
response: {
data: {
name: "Ubuntu",
age: 22
}
}
}))
content_copyCOPY
Comments