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
stylus-source-0.34.0 vendor/node_modules/mocha/node_modules/glob/test/globstar-match.js
stylus-source-0.33.1 vendor/node_modules/mocha/node_modules/glob/test/globstar-match.js
stylus-source-0.33.0 vendor/node_modules/mocha/node_modules/glob/test/globstar-match.js
stylus-source-0.32.1 vendor/node_modules/mocha/node_modules/glob/test/globstar-match.js
stylus-source-0.32.0 vendor/node_modules/mocha/node_modules/glob/test/globstar-match.js