pixelnode/node_modules/glob/test/new-glob-optional-options.js

11 lines
256 B
JavaScript
Raw Normal View History

2018-04-04 12:31:55 +02:00
var Glob = require('../glob.js').Glob;
var test = require('tap').test;
test('new glob, with cb, and no options', function (t) {
new Glob(__filename, function(er, results) {
if (er) throw er;
t.same(results, [__filename]);
t.end();
});
});