Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add failing test for #97 (#100)
  • Loading branch information
garyking authored and sindresorhus committed Feb 15, 2019
1 parent 71b9c58 commit ba9c267
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test.js
Expand Up @@ -214,3 +214,25 @@ test('respects gitignore option false - sync', t => {
const actual = m.sync('*', {gitignore: false, onlyFiles: false});
t.true(actual.indexOf('node_modules') > -1);
});

// https://github.com/sindresorhus/globby/issues/97
test.failing('`{extension: false}` and `expandDirectories.extensions` option', t => {
t.deepEqual(
m.sync(tmp, {
extension: false,
expandDirectories: {
extensions: [
'md',
'tmp'
]
}
}),
[
'a.tmp',
'b.tmp',
'c.tmp',
'd.tmp',
'e.tmp'
]
);
});

0 comments on commit ba9c267

Please sign in to comment.