mirror of https://github.com/webpack/webpack.git
9 lines
303 B
JavaScript
9 lines
303 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]{6})/.exec(
|
|
source
|
|
);
|
|
expect(match.length).toBe(4);
|
|
});
|