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

7 lines
342 B
JavaScript
Raw Normal View History

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, "dist/public/test.js"), "utf-8");
source.should.containEql("//# sourceMappingURL=https://10.10.10.10/project/sourcemaps/test.js.map");
});