Add test for require-hook node_modules check.

(Failing.)
This commit is contained in:
Jesse McCarthy 2015-06-01 16:23:35 -04:00
parent b1273cb774
commit 1488d88c81
2 changed files with 13 additions and 0 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();
});
});