@@ -91,6 +91,10 @@ test('glob - multiple file paths', async t => {
9191 t . deepEqual ( await runGlobby ( t , [ 'a.tmp' , 'b.tmp' ] ) , [ 'a.tmp' , 'b.tmp' ] ) ;
9292} ) ;
9393
94+ test ( 'glob - empty patterns' , async t => {
95+ t . deepEqual ( await runGlobby ( t , [ ] ) , [ ] ) ;
96+ } ) ;
97+
9498test ( 'glob with multiple patterns' , async t => {
9599 t . deepEqual ( await runGlobby ( t , [ 'a.tmp' , '*.tmp' , '!{c,d,e}.tmp' ] ) , [ 'a.tmp' , 'b.tmp' ] ) ;
96100} ) ;
@@ -112,14 +116,14 @@ test('glob - stream async iterator support', async t => {
112116 t . deepEqual ( results , [ 'a.tmp' , 'b.tmp' , 'c.tmp' , 'd.tmp' , 'e.tmp' ] ) ;
113117} ) ;
114118
115- test . serial ( 'cwd option - sync ' , async t => {
119+ test . serial ( 'cwd option' , async t => {
116120 process . chdir ( temporary ) ;
117121 t . deepEqual ( await runGlobby ( t , '*.tmp' , { cwd} ) , [ 'a.tmp' , 'b.tmp' , 'c.tmp' , 'd.tmp' , 'e.tmp' ] ) ;
118122 t . deepEqual ( await runGlobby ( t , [ 'a.tmp' , '*.tmp' , '!{c,d,e}.tmp' ] , { cwd} ) , [ 'a.tmp' , 'b.tmp' ] ) ;
119123 process . chdir ( cwd ) ;
120124} ) ;
121125
122- test ( 'don\'t mutate the options object - async ' , async t => {
126+ test ( 'don\'t mutate the options object' , async t => {
123127 await runGlobby ( t , [ '*.tmp' , '!b.tmp' ] , Object . freeze ( { ignore : Object . freeze ( [ ] ) } ) ) ;
124128 t . pass ( ) ;
125129} ) ;
0 commit comments