app/frontend/javascript/test_support/mock_api.js
Function mockApi
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const mockApi = function (resources = sequencescapeResources) {
const devour = devourApi({ apiUrl: dummyApiUrl }, resources, dummyApiKey)
const mockedRequests = []
// Find a request in the mockedRequests array that matches the request
// object. If no match is found, return undefined.