Skip to content

Commit fcb219d

Browse files
authored
change output filesystem to be in memory and linux style
1 parent 8ecae31 commit fcb219d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/Compiler.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)