File tree 1 file changed +25
-0
lines changed
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ var path = require ( 'path' ) ;
3
4
var expect = require ( 'expect' ) ;
4
5
var sinon = require ( 'sinon' ) ;
5
6
@@ -1029,6 +1030,30 @@ function suite(moduleName) {
1029
1030
1030
1031
gs . destroy ( ) ;
1031
1032
} ) ;
1033
+
1034
+ it ( 'handles tons of files with double-star glob' , function ( done ) {
1035
+ var gs = globStream ( './node_modules/**/LICENSE' , {
1036
+ cwd : path . resolve ( __dirname , '../' ) ,
1037
+ } ) ;
1038
+
1039
+ function assert ( results ) {
1040
+ expect ( results . length ) . toBeGreaterThan ( 16 ) ;
1041
+ }
1042
+
1043
+ stream . pipeline ( [ gs , concat ( assert ) ] , done ) ;
1044
+ } ) ;
1045
+
1046
+ it ( 'handles tons of files with single-star glob' , function ( done ) {
1047
+ var gs = globStream ( './node_modules/*' , {
1048
+ cwd : path . resolve ( __dirname , '../' ) ,
1049
+ } ) ;
1050
+
1051
+ function assert ( results ) {
1052
+ expect ( results . length ) . toBeGreaterThan ( 16 ) ;
1053
+ }
1054
+
1055
+ stream . pipeline ( [ gs , concat ( assert ) ] , done ) ;
1056
+ } ) ;
1032
1057
} ) ;
1033
1058
}
1034
1059
You can’t perform that action at this time.
0 commit comments