'use strict'; const mock = require('egg-mock'); describe('test/framework.test.js', () => { let app; before(() => { app = mock.app({ baseDir: 'example', framework: true, }); return app.ready(); }); after(() => app.close()); afterEach(mock.restore); it('should GET /', () => { return app.httpRequest() .get('/') .expect('framework-example_123456') .expect(200); }); });