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

7 lines
300 B
JavaScript

it("should have [file] replaced with chunk filename in append", function() {
var fs = require("fs"),
path = require("path");
var source = fs.readFileSync(path.join(__dirname, "some-test.js"), "utf-8");
expect(source).toMatch("//# sourceMappingURL=http://localhost:50505/some-test.js.map");
});