How to use the egg-mock.restore function in egg-mock

To help you get started, we’ve selected a few egg-mock examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eggjs / egg / test / async / _async.js View on Github external
describe('test/async.test.js', () => {
  let app;
  before(async () => {
    app ='apps/async-app');
    await app.ready();
  after(async () => {
    await app.close();

  it('middleware, controller and service support async functions', async () => {
    await app.httpRequest()