初始化项目

This commit is contained in:
dengtongyu committed 2020-11-20 16:07:37 +08:00
commit 28f327c903
19 files changed
+434

No files matched your search

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