Skip to content

Commit ba9c267

Browse files
garykingsindresorhus
authored andcommitted
Add failing test for #97 (#100)
1 parent 71b9c58 commit ba9c267

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test.js

+22
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,25 @@ test('respects gitignore option false - sync', t => {
214214
const actual = m.sync('*', {gitignore: false, onlyFiles: false});
215215
t.true(actual.indexOf('node_modules') > -1);
216216
});
217+
218+
// https://github.com/sindresorhus/globby/issues/97
219+
test.failing('`{extension: false}` and `expandDirectories.extensions` option', t => {
220+
t.deepEqual(
221+
m.sync(tmp, {
222+
extension: false,
223+
expandDirectories: {
224+
extensions: [
225+
'md',
226+
'tmp'
227+
]
228+
}
229+
}),
230+
[
231+
'a.tmp',
232+
'b.tmp',
233+
'c.tmp',
234+
'd.tmp',
235+
'e.tmp'
236+
]
237+
);
238+
});

0 commit comments

Comments
 (0)