1 var test = require("tap").test
2 var glob = require('../')
3 process.chdir(__dirname)
5 test("mark, no / on pattern", function (t) {
6 glob("a/*", {mark: true}, function (er, results) {
9 var expect = [ 'a/abcdef/',
16 if (process.platform !== "win32")
17 expect.push('a/symlink/')
19 t.same(results, expect)
24 test("mark=false, no / on pattern", function (t) {
25 glob("a/*", function (er, results) {
28 var expect = [ 'a/abcdef',
35 if (process.platform !== "win32")
36 expect.push('a/symlink')
37 t.same(results, expect)
42 test("mark=true, / on pattern", function (t) {
43 glob("a/*/", {mark: true}, function (er, results) {
46 var expect = [ 'a/abcdef/',
52 if (process.platform !== "win32")
53 expect.push('a/symlink/')
54 t.same(results, expect)
59 test("mark=false, / on pattern", function (t) {
60 glob("a/*/", function (er, results) {
63 var expect = [ 'a/abcdef/',
69 if (process.platform !== "win32")
70 expect.push('a/symlink/')
71 t.same(results, expect)