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