Skip to content

Commit

Permalink
add more sync cb thrower tests
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 26, 2015
1 parent f7302ca commit 155124b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/sync-cb-throw.js
Expand Up @@ -24,6 +24,22 @@ test('sync throws if provided callback', function (t) {
g.GlobSync('*', function() {})
})

t.throws(function () {
g.GlobSync()
})

t.throws(function () {
g.sync()
})

t.throws(function () {
g()
})

t.throws(function () {
g.Glob()
})

t.end()
})

Expand Down

0 comments on commit 155124b

Please sign in to comment.