-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); | ||
}); |