lint: upgrade packages, fix generator star spacing
This commit is contained in:
parent
177b599fd5
commit
be87ef8a24
2 changed files with 5 additions and 5 deletions
|
@ -48,9 +48,9 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "^6.1.2",
|
"babel-core": "^6.1.2",
|
||||||
"babel-eslint": "^5.0.0",
|
"babel-eslint": "^6.0.0",
|
||||||
"babel-plugin-transform-async-to-generator": "^6.0.14",
|
"babel-plugin-transform-async-to-generator": "^6.0.14",
|
||||||
"eslint": "~2.2.0",
|
"eslint": "^2.5.3",
|
||||||
"eslint-config-standard": "^5.1.0",
|
"eslint-config-standard": "^5.1.0",
|
||||||
"eslint-plugin-babel": "^3.1.0",
|
"eslint-plugin-babel": "^3.1.0",
|
||||||
"eslint-plugin-promise": "^1.1.0",
|
"eslint-plugin-promise": "^1.1.0",
|
||||||
|
|
|
@ -55,7 +55,7 @@ describe('app.use(fn)', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
app.use(function *(next){
|
app.use(function * (next){
|
||||||
calls.push(2);
|
calls.push(2);
|
||||||
yield next;
|
yield next;
|
||||||
calls.push(5);
|
calls.push(5);
|
||||||
|
@ -97,7 +97,7 @@ describe('app.use(fn)', () => {
|
||||||
const app = new Koa();
|
const app = new Koa();
|
||||||
|
|
||||||
app.use((ctx, next) => { return next(); });
|
app.use((ctx, next) => { return next(); });
|
||||||
app.use(function *(next){ this.body = 'generator'; });
|
app.use(function * (next){ this.body = 'generator'; });
|
||||||
|
|
||||||
request(app.listen())
|
request(app.listen())
|
||||||
.get('/')
|
.get('/')
|
||||||
|
@ -118,7 +118,7 @@ describe('app.use(fn)', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const app = new Koa();
|
const app = new Koa();
|
||||||
app.use(function *(){});
|
app.use(function * (){});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should throw error for non function', () => {
|
it('should throw error for non function', () => {
|
||||||
|
|
Loading…
Reference in a new issue