File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ describe("Compiler", function() {
2121 var c = webpack ( options ) ;
2222 var files = { } ;
2323 c . outputFileSystem = {
24- join : path . join . bind ( path ) ,
24+ join : function ( ) {
25+ return [ ] . join . call ( arguments , "/" ) . replace ( / \/ + / g, "/" ) ;
26+ } ,
2527 mkdirp : function ( path , callback ) {
2628 logs . mkdirp . push ( path ) ;
2729 callback ( ) ;
@@ -55,17 +57,15 @@ describe("Compiler", function() {
5557 } ) ;
5658 }
5759 it ( "should compile a single file to deep output" , function ( done ) {
58- var sep = path . sep ;
59-
6060 compile ( "./c" , {
6161 output : {
6262 path : "/what" ,
63- filename : "the" + sep + " hell.js",
63+ filename : "the/ hell.js" ,
6464 }
6565 } , function ( stats , files ) {
6666 stats . logs . mkdirp . should . eql ( [
6767 "/what" ,
68- "/what" + sep + " the",
68+ "/what/ the" ,
6969 ] ) ;
7070 done ( ) ;
7171 } ) ;
You can’t perform that action at this time.
0 commit comments