You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should get a base name from character class pattern',function(done){varglobber=newglob.Glob("js/t[a-z]st}/*.js",{cwd: __dirname});glob2base(globber).should.equal("js/");done();});// passesit('should get a base name from brace , expansion',function(done){varglobber=newglob.Glob("js/{src,test}/*.js",{cwd: __dirname});glob2base(globber).should.equal("js/");done();});// AssertionError: expected 'js/src/' to be 'js/it.only('should get a base name from brace .. expansion',function(done){varglobber=newglob.Glob("js/test{0..9}/*.js",{cwd: __dirname});glob2base(globber).should.equal("js/");done();});// AssertionError: expected 'js/test0/' to be 'js/'it('should get a base name from extglob',function(done){varglobber=newglob.Glob("js/t+(wo|est)/*.js",{cwd: __dirname});glob2base(globber).should.equal("js/");done();});// passes
The behavior when involving brace expansion:
Does not conform to the behavior with other types of patterns (it includes instead of excludes the directory matched). This can be argued as the correct behavior.
Only produces a base for the first expansion and not any of the subsequent ones in the pattern. Due to this behavior, modules such as glob-stream will produce Files with a path outside the base. (e.g. path: CWD/test/main.js, base: CWD/src/)
The text was updated successfully, but these errors were encountered:
4 tests, the two with brace expansion fail
The behavior when involving brace expansion:
path
outside thebase
. (e.g.path: CWD/test/main.js, base: CWD/src/
)The text was updated successfully, but these errors were encountered: