Sha256: 33aa16a73f86f77de3127fa49a4ce74b1f783a6835b6416223bc4a430ce4c47a

Contents?: true

Size: 1.7 KB

Versions: 49

Compression:

Stored size: 1.7 KB

Contents

var test = require("tap").test
var glob = require('../')
process.chdir(__dirname)

test("mark, no / on pattern", function (t) {
  glob("a/*", {mark: true}, function (er, results) {
    if (er)
      throw er
    var expect = [ 'a/abcdef/',
                   'a/abcfed/',
                   'a/b/',
                   'a/bc/',
                   'a/c/',
                   'a/cb/' ]

    if (process.platform !== "win32")
      expect.push('a/symlink/')

    t.same(results, expect)
    t.end()
  })
})

test("mark=false, no / on pattern", function (t) {
  glob("a/*", function (er, results) {
    if (er)
      throw er
    var expect = [ 'a/abcdef',
                   'a/abcfed',
                   'a/b',
                   'a/bc',
                   'a/c',
                   'a/cb' ]

    if (process.platform !== "win32")
      expect.push('a/symlink')
    t.same(results, expect)
    t.end()
  })
})

test("mark=true, / on pattern", function (t) {
  glob("a/*/", {mark: true}, function (er, results) {
    if (er)
      throw er
    var expect = [ 'a/abcdef/',
                    'a/abcfed/',
                    'a/b/',
                    'a/bc/',
                    'a/c/',
                    'a/cb/' ]
    if (process.platform !== "win32")
      expect.push('a/symlink/')
    t.same(results, expect)
    t.end()
  })
})

test("mark=false, / on pattern", function (t) {
  glob("a/*/", function (er, results) {
    if (er)
      throw er
    var expect = [ 'a/abcdef/',
                   'a/abcfed/',
                   'a/b/',
                   'a/bc/',
                   'a/c/',
                   'a/cb/' ]
    if (process.platform !== "win32")
      expect.push('a/symlink/')
    t.same(results, expect)
    t.end()
  })
})

Version data entries

49 entries across 43 versions & 6 rubygems

Version Path
blackboard-3.1.9 lib/site_template/node_modules/globule/node_modules/glob/test/mark.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/gaze/node_modules/globule/node_modules/glob/test/mark.js
gulp_assets-1.0.0.pre.5 template/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/node_modules/glob/test/mark.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/node_modules/glob/test/mark.js
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/gaze/node_modules/globule/node_modules/glob/test/mark.js
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/gaze/node_modules/globule/node_modules/glob/test/mark.js
gulp_assets-1.0.0.pre.3 template/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/node_modules/glob/test/mark.js
entangled-0.0.16 spec/dummy/public/node_modules/grunt/node_modules/glob/test/mark.js
entangled-0.0.15 spec/dummy/public/node_modules/grunt/node_modules/glob/test/mark.js
entangled-0.0.14 spec/dummy/public/node_modules/grunt/node_modules/glob/test/mark.js
entangled-0.0.13 spec/dummy/public/node_modules/grunt/node_modules/glob/test/mark.js
entangled-0.0.12 spec/dummy/public/node_modules/grunt/node_modules/glob/test/mark.js
entangled-0.0.11 spec/dummy/public/node_modules/grunt/node_modules/glob/test/mark.js
entangled-0.0.10 spec/dummy/public/node_modules/grunt/node_modules/glob/test/mark.js
stylus-source-0.49.3 vendor/node_modules/mocha/node_modules/glob/test/mark.js
trans-0.5.10 template/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/node_modules/glob/test/mark.js
trans-0.5.10 template/node_modules/grunt/node_modules/glob/test/mark.js
trans-0.5.9 template/node_modules/grunt/node_modules/glob/test/mark.js
trans-0.5.9 template/node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-watcher/node_modules/gaze/node_modules/globule/node_modules/glob/test/mark.js
stylus-source-0.42.2 vendor/node_modules/mocha/node_modules/glob/test/mark.js