mirror of https://github.com/webpack/webpack.git
13 lines
546 B
JavaScript
13 lines
546 B
JavaScript
it("should contain publicPath prefix in [url] and resolve relatively to fileContext", function() {
|
|
var fs = require("fs"),
|
|
path = require("path");
|
|
var source = fs.readFileSync(path.join(__dirname, "public/test.js"), "utf-8");
|
|
expect(source).toMatch("//# sourceMappingURL=https://10.10.10.10/project/sourcemaps/test.js.map");
|
|
});
|
|
|
|
it("should write sourcemap file relative to fileContext", function() {
|
|
var fs = require("fs"),
|
|
path = require("path");
|
|
expect(fs.existsSync(path.join(__dirname, "sourcemaps/test.js.map"))).toBe(true);
|
|
});
|