Guest User

Untitled

a guest
Nov 3rd, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. expect(axios.put).toHaveBeenCalledTimes(1);
  2. // Check to see if the parameters are correct
  3. expect(axios.put).toHaveBeenCalledWith('/api/v1/user', { username: USERNAME, password: PASSWORD });
  4. // Check to ensure that the method reached a "return" statement
  5. expect(axios.put).toHaveReturned();
Add Comment
Please, Sign In to add comment