Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // GIVEN
- sandbox.stub(axios, 'get').returns(EXPECTED_RESPONSE_BODY);
- // WHEN
- functionUnderTest();
- // THEN
- expect(axios.get).to.have.been.calledWith('expectedEndpoint');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement