初始化项目
This commit is contained in:
commit
28f327c903
19 files changed
+434
No files matched your search
@@ -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);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user