webpack/test/configCases/source-map/source-map-filename-content.../index.js

7 lines
299 B
JavaScript
Raw Normal View History

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);
match.length.should.be.eql(4);
});