new-glob-optional-options.js 256 B

12345678910
  1. var Glob = require('../glob.js').Glob;
  2. var test = require('tap').test;
  3. test('new glob, with cb, and no options', function (t) {
  4. new Glob(__filename, function(er, results) {
  5. if (er) throw er;
  6. t.same(results, [__filename]);
  7. t.end();
  8. });
  9. });