Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- expect(axios.put).toHaveBeenCalledTimes(1);
- // Check to see if the parameters are correct
- expect(axios.put).toHaveBeenCalledWith('/api/v1/user', { username: USERNAME, password: PASSWORD });
- // Check to ensure that the method reached a "return" statement
- expect(axios.put).toHaveReturned();
Add Comment
Please, Sign In to add comment