Sha256: 706b3ee132213bcbe04049c215097345656f49e8283dd022dc5e4c1273027dfe
Contents?: true
Size: 503 Bytes
Versions: 105
Compression:
Stored size: 503 Bytes
Contents
var Glob = require("../glob.js").Glob var test = require('tap').test test('globstar should not have dupe matches', function(t) { var pattern = 'a/**/[gh]' var g = new Glob(pattern, { cwd: __dirname }) var matches = [] g.on('match', function(m) { console.error('match %j', m) matches.push(m) }) g.on('end', function(set) { console.error('set', set) matches = matches.sort() set = set.sort() t.same(matches, set, 'should have same set of matches') t.end() }) })
Version data entries
105 entries across 72 versions & 9 rubygems