12345678910 |
- import assert from 'assert';
- import { app } from 'egg-mock/bootstrap';
- describe('test/app/module/bar/controller/user.test.ts', () => {
- it('should GET /', async () => {
- const res = await app.httpRequest().get('/bar/user').query({ userId: '20170901' });
- assert.equal(res.status, 200);
- assert.equal(res.text, 'hello, 20170901');
- });
- });
|