Sha256: c2df98c8f08ce7b3f82fc3c5c3bd557c7fad1c227876108f005fdc3b7ee576eb
Contents?: true
Size: 635 Bytes
Versions: 3
Compression:
Stored size: 635 Bytes
Contents
var fs = require('fs'); QUnit.module('sourcemap validation', function() { var assets = ['ember.debug', 'ember.prod', 'ember.min']; assets.forEach(asset => { QUnit.test(`${asset} has only a single sourcemaps comment`, function(assert) { var jsPath = `dist/${asset}.js`; assert.ok(fs.existsSync(jsPath)); var contents = fs.readFileSync(jsPath, 'utf-8'); var num = count(contents, '//# sourceMappingURL='); assert.equal(num, 1); }); }); }); function count(source, find) { var num = 0; var i = -1; while ((i = source.indexOf(find, i + 1)) !== -1) { num += 1; } return num; }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
discourse-ember-source-3.6.0.0 | dist/node/sourcemap-test.js |
discourse-ember-source-3.5.1.1 | dist/node/sourcemap-test.js |
discourse-ember-source-3.5.1.0 | dist/dist/node/sourcemap-test.js |