Merge branch 'master' of github.com:bestiejs/lodash

Former-commit-id: a8dbad27cb89e403dbdafcc7cc69a397ae1e5bbd
This commit is contained in:
John-David Dalton
2012-09-26 22:31:18 -07:00

View File

@@ -460,6 +460,40 @@
/*--------------------------------------------------------------------------*/
QUnit.module('independent builds');
(function() {
asyncTest('debug only', function() {
build(['-d', '-s'], function(source, filepath) {
equal(path.basename(filepath, '.js'), 'lodash');
start();
});
});
asyncTest('debug custom', function () {
build(['-d', '-s', 'backbone'], function(source, filepath) {
equal(path.basename(filepath, '.js'), 'lodash.custom');
start();
});
});
asyncTest('minified only', function() {
build(['-m', '-s'], function(source, filepath) {
equal(path.basename(filepath, '.js'), 'lodash.min');
start();
});
});
asyncTest('minified custom', function () {
build(['-m', '-s', 'backbone'], function(source, filepath) {
equal(path.basename(filepath, '.js'), 'lodash.custom.min');
start();
});
});
}());
/*--------------------------------------------------------------------------*/
QUnit.module('strict modifier');
(function() {