test: remove babel tests as they are no longer needed in node v7.6
This commit is contained in:
parent
df7b4ff2b8
commit
9671add57d
4 changed files with 1 additions and 55 deletions
3
Makefile
3
Makefile
|
@ -5,8 +5,7 @@ REQUIRED = --require should --require should-http
|
|||
TESTS = test/application/* \
|
||||
test/context/* \
|
||||
test/request/* \
|
||||
test/response/* \
|
||||
test/babel/index.js
|
||||
test/response/*
|
||||
|
||||
lint:
|
||||
@./node_modules/.bin/eslint benchmarks lib test
|
||||
|
|
|
@ -47,9 +47,6 @@
|
|||
"tag": "next"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "^6.0.0",
|
||||
"babel-plugin-transform-async-to-generator": "^6.0.14",
|
||||
"babel-register": "^6.9.0",
|
||||
"eslint": "^2.5.3",
|
||||
"eslint-config-standard": "^5.1.0",
|
||||
"eslint-plugin-babel": "^3.1.0",
|
||||
|
|
|
@ -1,42 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
const request = require('supertest');
|
||||
const Koa = require('../..');
|
||||
|
||||
describe('require("babel-core/register")', () => {
|
||||
describe('app.use(fn)', () => {
|
||||
it('should compose middleware w/ async functions', done => {
|
||||
const app = new Koa();
|
||||
const calls = [];
|
||||
|
||||
app.use(async (ctx, next) => {
|
||||
calls.push(1);
|
||||
await next();
|
||||
calls.push(6);
|
||||
});
|
||||
|
||||
app.use(async (ctx, next) => {
|
||||
calls.push(2);
|
||||
await next();
|
||||
calls.push(5);
|
||||
});
|
||||
|
||||
app.use(async (ctx, next) => {
|
||||
calls.push(3);
|
||||
await next();
|
||||
calls.push(4);
|
||||
});
|
||||
|
||||
const server = app.listen();
|
||||
|
||||
request(server)
|
||||
.get('/')
|
||||
.expect(404)
|
||||
.end(err => {
|
||||
if (err) return done(err);
|
||||
calls.should.eql([1, 2, 3, 4, 5, 6]);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
|
@ -1,8 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
// http://babeljs.io/docs/setup/#babel_register
|
||||
|
||||
require('babel-register')({
|
||||
plugins: ['transform-async-to-generator']
|
||||
});
|
||||
require('./_test.js');
|
Loading…
Reference in a new issue