Skip to content

Commit

Permalink
Add failing test for #97 (#100)
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
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.