Merge branch 'node_modules-robust' of https://github.com/jmm/babel into jmm-node_modules-robust

This commit is contained in:
Sebastian McKenzie
2015-06-03 07:26:12 +01:00
3 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1 @@
() => {};

12
test/core/require-hook.js Normal file
View File

@@ -0,0 +1,12 @@
var chai = require("chai");
// Require-hook.
require("../../lib/babel/api/register/node");
suite("require hook", function () {
test("not node_modules", function () {
chai.expect(function () {
require("./fixtures/require-hook/not_node_modules/input");
}).to.not.throw();
});
});