Skip to content

Commit

Permalink
test: Removed test for dropped feature
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Sep 7, 2016
1 parent ab4721a commit c6666ed
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions test/index.js
Expand Up @@ -110,21 +110,4 @@ describe('The public interface', function() {
assert(pub.path);
assert.equal(pub.path, pub.toString());
});

it('should print a warning when passing a function to require(), but still work normally', function(done) {
var warnings = 0;
var _warn = console.warn;
console.warn = function(msg) {
warnings++;
};

var req = pub.require(require);

process.nextTick(function() {
var testlib = req('lib/testlib.js');
assert(warnings);
assert.equal(testlib, 'hello world');
done();
});
});
});

0 comments on commit c6666ed

Please sign in to comment.