添加 eggjs web-server,初步支持多宝短信

This commit is contained in:
liangtongchuan
2020-08-15 22:42:04 +08:00
parent 8ce0dc040f
commit 0458817b51
29 changed files with 11337 additions and 0 deletions

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