22 lines
496 B
JavaScript
22 lines
496 B
JavaScript
'use strict';
|
|
|
|
const { app, assert } = require('egg-mock/bootstrap');
|
|
|
|
describe('test/app/controller/home.test.js', () => {
|
|
|
|
it('should assert', function* () {
|
|
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(/<script src="\/umi.js"><\/script>/)
|
|
.expect(200);
|
|
});
|
|
});
|