lint: upgrade packages, fix generator star spacing

This commit is contained in:
jongleberry 2016-03-28 14:21:05 -07:00
parent 177b599fd5
commit be87ef8a24
2 changed files with 5 additions and 5 deletions

View file

@ -48,9 +48,9 @@
},
"devDependencies": {
"babel-core": "^6.1.2",
"babel-eslint": "^5.0.0",
"babel-eslint": "^6.0.0",
"babel-plugin-transform-async-to-generator": "^6.0.14",
"eslint": "~2.2.0",
"eslint": "^2.5.3",
"eslint-config-standard": "^5.1.0",
"eslint-plugin-babel": "^3.1.0",
"eslint-plugin-promise": "^1.1.0",

View file

@ -55,7 +55,7 @@ describe('app.use(fn)', () => {
});
});
app.use(function *(next){
app.use(function * (next){
calls.push(2);
yield next;
calls.push(5);
@ -97,7 +97,7 @@ describe('app.use(fn)', () => {
const app = new Koa();
app.use((ctx, next) => { return next(); });
app.use(function *(next){ this.body = 'generator'; });
app.use(function * (next){ this.body = 'generator'; });
request(app.listen())
.get('/')
@ -118,7 +118,7 @@ describe('app.use(fn)', () => {
});
const app = new Koa();
app.use(function *(){});
app.use(function * (){});
});
it('should throw error for non function', () => {