Skip to content

Commit 612111a

Browse files
committed
SourceMapDevToolPlugin: Second test case, make sure sourcemap file is written to expected directory considering the fileContext was provided
1 parent 840b43f commit 612111a

File tree

1 file changed

+6
-0
lines changed
  • test/configCases/plugins/source-map-dev-tool-plugin

1 file changed

+6
-0
lines changed

test/configCases/plugins/source-map-dev-tool-plugin/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ it("should contain publicPath prefix in [url] and resolve relatively to fileCont
44
var source = fs.readFileSync(path.join(__dirname, "dist/public/test.js"), "utf-8");
55
source.should.containEql("//# sourceMappingURL=https://10.10.10.10/project/sourcemaps/test.js.map");
66
});
7+
8+
it("should write sourcemap file relative fo fileContext", function() {
9+
var fs = require("fs"),
10+
path = require("path");
11+
fs.existsSync(path.join(__dirname, "sourcemaps/test.js.map")).should.be.true();
12+
});

0 commit comments

Comments
 (0)