David Lewallen

Results 9 comments of David Lewallen

@djalmaaraujo What does your http request look like for POST and GET?

@djalmaaraujo can you show me the code that is making the request to `${SERVER_URL}/api/car`

@djalmaaraujo the code you link has no GET request to `${SERVER_URL}/api/cart` or a POST request to `${SERVER_URL}/api/quoteDetails/product/`

@djalmaaraujo I think its how you are using the base url. You can `console.log(mock.handlers.get)` to see if the right url is saved in the array. I just mocked this up...

@djalmaaraujo add `console.log(JSON.stringify(mock.handlers, null, 2))` inside of your `beforeEach` but after the mock calls and post that up

@djalmaaraujo try removing the `${SERVER_URL}` and see if that helps?

@djalmaaraujo hmm I am seeing something a little different on my end. Try adding this to `createOrReturnCart` function: ``` const createOrReturnCart = () => requestInstance.post('/api/cart') .then(response => response) .catch((error) =>...

@djalmaaraujo One last thing before I give up. Make these changes ``` mock .onPost('/api/cart').reply(200, 'cart') .onGet(/api\/quoteDetails\/product\/.+/).reply(200, 'quoteDetailsData') ``` See if that give any better results

Any progress with this issue? Is there anything that I can do to further this along?