Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. // GIVEN
  2. sandbox.stub(axios, 'get').returns(EXPECTED_RESPONSE_BODY);
  3.  
  4. // WHEN
  5. functionUnderTest();
  6.  
  7. // THEN
  8. expect(axios.get).to.have.been.calledWith('expectedEndpoint');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement