Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shaowin authored and shaowin committed Nov 7, 2017
1 parent 016ff56 commit 2065196
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/app/controller/home.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
'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('hi, egg')
.expect(200);
});
});

0 comments on commit 2065196

Please sign in to comment.