Function to reduce repeated code in dbapi tests. Tests of model statics that
rely on the dbapi client should include a test for the api returning an error,
resulting in a lot of repeated code across test files.
Eg.
it('returns an error if the api responds with an error', async () => { dbapiMockErrorResponse('connections', server);
Function to reduce repeated code in
dbapitests. Tests of model statics that rely on thedbapiclient should include a test for the api returning an error, resulting in a lot of repeated code across test files.Eg.