The test code seems to mock GET requests as GET and POST requests. I've currently no idea why, but added the missing test to ensure the correct behaviour.
Thanks. The test was falling however. I needed to reset all mocks before running each test and split the POST from the PUT in a separate test to get it working.
The test code seems to mock GET requests as GET and POST requests. I've currently no idea why, but added the missing test to ensure the correct behaviour.