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

Version Path
ela-4.1.6 node_modules/glob/test/globstar-match.js
ela-4.1.5 node_modules/glob/test/globstar-match.js
ela-4.1.4 node_modules/glob/test/globstar-match.js
ela-4.1.3 node_modules/glob/test/globstar-match.js
ela-4.1.2 node_modules/glob/test/globstar-match.js
ela-4.1.1 node_modules/glob/test/globstar-match.js
ela-4.1.0 node_modules/glob/test/globstar-match.js
ela-4.0.0 node_modules/glob/test/globstar-match.js
ela-3.4.3 node_modules/glob/test/globstar-match.js
ela-3.4.2 node_modules/glob/test/globstar-match.js
ela-3.4.0 node_modules/glob/test/globstar-match.js
ela-3.3.1 node_modules/glob/test/globstar-match.js
ela-3.3.0 node_modules/glob/test/globstar-match.js
ela-3.2.0 node_modules/glob/test/globstar-match.js
ela-3.1.1 node_modules/glob/test/globstar-match.js
ela-3.1.0 node_modules/glob/test/globstar-match.js
ela-3.0.0 node_modules/glob/test/globstar-match.js
ela-2.0.0 node_modules/glob/test/globstar-match.js
ela-1.1.0 node_modules/glob/test/globstar-match.js
blackboard-3.1.9 lib/site_template/node_modules/node-sass/node_modules/globule/node_modules/glob/test/globstar-match.js