Add tests for the -d and -m options.

Former-commit-id: def5bcf323aaed96c037fea3e15c4a5c8c72a977
This commit is contained in:
Kit Cambridge
2012-09-26 09:26:40 -06:00
parent 5311a0f903
commit a77a0945fe

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() {