File: empty-set.js

package info (click to toggle)
node-glob 7.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 936 kB
  • sloc: sh: 89; makefile: 20
file content (21 lines) | stat: -rw-r--r-- 456 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require("./global-leakage.js")
var test = require('tap').test
var glob = require("../glob.js")

// Patterns that cannot match anything
var patterns = [
  '# comment',
  ' ',
  '\n',
  'just doesnt happen to match anything so this is a control'
]

patterns.forEach(function (p) {
  test(JSON.stringify(p), function (t) {
    glob(p, function (e, f) {
      t.equal(e, null, 'no error')
      t.same(f, [], 'no returned values')
      t.end()
    })
  })
})