mirror of https://github.com/webpack/webpack.git
7 lines
298 B
JavaScript
7 lines
298 B
JavaScript
it("should contain contenthash as query parameter and path", function() {
|
|
var fs = require("fs");
|
|
var source = fs.readFileSync(__filename, "utf-8");
|
|
var match = /sourceMappingURL\s*=.*-([A-Fa-f0-9]{32})\.map\?([A-Fa-f0-9]{32})-([A-Fa-f0-9]{32})/.exec(source);
|
|
expect(match.length).toBe(4);
|
|
});
|