1234567891011121314151617181920212223242526 |
- '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);
- });
- });
|