test: remove babel tests as they are no longer needed in node v7.6

This commit is contained in:
jongleberry 2017-02-25 00:05:25 -06:00
parent df7b4ff2b8
commit 9671add57d
4 changed files with 1 additions and 55 deletions

View file

@ -5,8 +5,7 @@ REQUIRED = --require should --require should-http
TESTS = test/application/* \ TESTS = test/application/* \
test/context/* \ test/context/* \
test/request/* \ test/request/* \
test/response/* \ test/response/*
test/babel/index.js
lint: lint:
@./node_modules/.bin/eslint benchmarks lib test @./node_modules/.bin/eslint benchmarks lib test

View file

@ -47,9 +47,6 @@
"tag": "next" "tag": "next"
}, },
"devDependencies": { "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": "^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",

View file

@ -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();
});
});
});
});

View file

@ -1,8 +0,0 @@
'use strict';
// http://babeljs.io/docs/setup/#babel_register
require('babel-register')({
plugins: ['transform-async-to-generator']
});
require('./_test.js');