mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Add @license to minified copyright header to preserve it in case of double minification. [closes #138]
Former-commit-id: 6c9b72f9c807daac613ff2d4339c0e3c4e7cafe3
This commit is contained in:
@@ -560,6 +560,9 @@
|
||||
QUnit.module('independent builds');
|
||||
|
||||
(function() {
|
||||
var reComment = /\/\*![\s\S]+?\*\//,
|
||||
reCustom = /Custom Build/;
|
||||
|
||||
asyncTest('debug only', function() {
|
||||
var start = _.once(QUnit.start);
|
||||
build(['-d', '-s'], function(source, filePath) {
|
||||
@@ -572,6 +575,9 @@
|
||||
var start = _.once(QUnit.start);
|
||||
build(['-d', '-s', 'backbone'], function(source, filePath) {
|
||||
equal(path.basename(filePath, '.js'), 'lodash.custom');
|
||||
|
||||
var comment = source.match(reComment);
|
||||
ok(reCustom.test(comment));
|
||||
start();
|
||||
});
|
||||
});
|
||||
@@ -588,6 +594,9 @@
|
||||
var start = _.once(QUnit.start);
|
||||
build(['-m', '-s', 'backbone'], function(source, filePath) {
|
||||
equal(path.basename(filePath, '.js'), 'lodash.custom.min');
|
||||
|
||||
var comment = source.match(reComment);
|
||||
ok(reCustom.test(comment));
|
||||
start();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user