Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 20, 2017
1 parent 9bf9983 commit bc03c66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test.js
Expand Up @@ -109,6 +109,11 @@ test('expandDirectories option', t => {
}), ['tmp/a.tmp']);
});

test('expandDirectories:true and nodir:true option', t => {
t.deepEqual(m.sync('tmp', {nodir: true}), ['tmp/a.tmp', 'tmp/b.tmp', 'tmp/c.tmp', 'tmp/d.tmp', 'tmp/e.tmp']);
t.deepEqual(m.sync('tmp', {nodir: false}), ['tmp', 'tmp/a.tmp', 'tmp/b.tmp', 'tmp/c.tmp', 'tmp/d.tmp', 'tmp/e.tmp']);
});

// Rejected for being an invalid pattern
[
{},
Expand Down

0 comments on commit bc03c66

Please sign in to comment.