File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ const failures = [];
1010// path.basename tests
1111assert . strictEqual ( path . basename ( f ) , 'test-path.js' ) ;
1212assert . strictEqual ( path . basename ( f , '.js' ) , 'test-path' ) ;
13+ assert . strictEqual ( path . basename ( '.js' , '.js' ) , '' ) ;
1314assert . strictEqual ( path . basename ( '' ) , '' ) ;
1415assert . strictEqual ( path . basename ( '/dir/basename.ext' ) , 'basename.ext' ) ;
1516assert . strictEqual ( path . basename ( '/basename.ext' ) , 'basename.ext' ) ;
@@ -74,6 +75,7 @@ assert.strictEqual(path.posix.dirname('/a'), '/');
7475assert . strictEqual ( path . posix . dirname ( '' ) , '.' ) ;
7576assert . strictEqual ( path . posix . dirname ( '/' ) , '/' ) ;
7677assert . strictEqual ( path . posix . dirname ( '////' ) , '/' ) ;
78+ assert . strictEqual ( path . posix . dirname ( '//a' ) , '//' ) ;
7779assert . strictEqual ( path . posix . dirname ( 'foo' ) , '.' ) ;
7880
7981assert . strictEqual ( path . win32 . dirname ( 'c:\\' ) , 'c:\\' ) ;
You can’t perform that action at this time.
0 commit comments