1234567891011121314151617181920 |
- 'use strict';
- const { app, assert } = require('egg-mock/bootstrap');
- describe('test/app/controller/home.test.js', () => {
- it('should assert', async () => {
- const pkg = require('../../../package.json');
- assert(app.config.keys.startsWith(pkg.name));
- // const ctx = app.mockContext({});
- // yield ctx.service.xx();
- });
- it('should GET /', async () => {
- return app.httpRequest()
- .get('/')
- .expect('hi, egg')
- .expect(200);
- });
- });
|