import supertest from 'supertest';
import proxyquire from 'proxyquire';
import fakeServices from '../fake/services';
import fakeProviders from '../fake/providers';

export default function request(stubs) {
  const services = {
    ...fakeServices(stubs),
    '@global': true,
  };

  const providers = {
    getProvider() {
      return fakeProviders(stubs);
    },
    '@global': true,
    '@noCallThru': true,
  };

  const app = proxyquire('../../src/app', {
    './services': services,
    '../services': services,
    '../../services': services,
    './providers': providers,
    '../providers': providers,
    '../../providers': providers,
  });

  return supertest(app);
}

@@ -261,32 +261,57 @@
 @global': true,%0A
+    '@noCallThru': true,%0A
   %7D;%0A%0A  const pr

Disable call thru in fake service.