Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add tests for the `-d` and `-m` options.

  • Loading branch information...
commit 4d53df30bf3ba1919a62c33c2a1281568da19535 1 parent f862af0
@kitcambridge kitcambridge authored
Showing with 34 additions and 0 deletions.
  1. +34 −0 test/test-build.js
View
34 test/test-build.js
@@ -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() {
Please sign in to comment.
Something went wrong with that request. Please try again.