Relative Content

Tag Archive for arraysangularjasminekarma-runner

Error: Expected one matching request for criteria “Match method: PUT, URL: http://localhost:3000/api/v1/users/1”, found none

I am trying to create unit tests for a full-stack application I am writing to practice learning angular. I am trying to create mock requests to test the functions of my frontend without actually making requests to the backend. This test keeps saying that it is not receving a put request, although the function that sends the put request is being entered. The put request is being sent when the angular server is live, just not when the test is being ran.