mirror of https://github.com/webpack/webpack.git
9 lines
314 B
JavaScript
9 lines
314 B
JavaScript
|
it("should include webpack://mynamespace/./[id].js in SourceMap", function () {
|
||
|
var fs = require("fs");
|
||
|
var source = fs.readFileSync(__filename + ".map", "utf-8");
|
||
|
var map = JSON.parse(source);
|
||
|
expect(map.sources).toContain("webpack://mynamespace/./[id].js");
|
||
|
});
|
||
|
|
||
|
if (Math.random() < 0) require("./[id].js");
|