Closed magicspon closed 5 years ago
Sorted!
expect(mockAxios).toHaveBeenCalledWith('benefit/10')
expect(mockAxios).toHaveBeenCalledWith('selection/10')
expect(mockAxios.all).toHaveBeenCalledTimes(1)
mockAxios.mockResponse({
data: [
{
benefitId: 200
},
{
benefitId: 201
}
]
})
mockAxios.mockResponse({
data: [
{
benefitId: 200
},
{
benefitId: 201
}
]
})
as you were!
hello,
I can see axios.all has been mocked, but I can't see how you handle mocking responses.
Is this possible?
thanks