13 lines
284 B
JavaScript
13 lines
284 B
JavaScript
|
var test = require('tape');
|
||
|
var resolve = require('../');
|
||
|
|
||
|
test('core modules', function (t) {
|
||
|
t.ok(resolve.isCore('fs'));
|
||
|
t.ok(resolve.isCore('net'));
|
||
|
t.ok(resolve.isCore('http'));
|
||
|
|
||
|
t.ok(!resolve.isCore('seq'));
|
||
|
t.ok(!resolve.isCore('../'));
|
||
|
t.end();
|
||
|
});
|