添加 eggjs web-server,初步支持多宝短信
This commit is contained in:
9
web-server/test/app/controller/home.test.ts
Normal file
9
web-server/test/app/controller/home.test.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import * as assert from 'assert';
|
||||
import { app } from 'egg-mock/bootstrap';
|
||||
|
||||
describe('test/app/controller/home.test.ts', () => {
|
||||
it('should GET /', async () => {
|
||||
const result = await app.httpRequest().get('/').expect(200);
|
||||
assert(result.text === 'hi, egg');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user