You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
425 B

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()
})
})
})