mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Add -n/--no-dep build option.
Former-commit-id: 57571d0df4e17402b9055bae5ccfbc2b94f03613
This commit is contained in:
@@ -1270,7 +1270,35 @@
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('output options');
|
||||
QUnit.module('nodep option');
|
||||
|
||||
(function() {
|
||||
var commands = [
|
||||
'-n',
|
||||
'--no-dep'
|
||||
];
|
||||
|
||||
commands.forEach(function(command) {
|
||||
asyncTest('`lodash modern include=each ' + command +'`', function() {
|
||||
var start = _.after(2, _.once(QUnit.start));
|
||||
|
||||
build(['-s', 'modern', 'include=each', command], function(data) {
|
||||
var basename = path.basename(data.outputPath, '.js'),
|
||||
context = createContext();
|
||||
|
||||
vm.runInContext(data.source, context);
|
||||
var lodash = context._;
|
||||
|
||||
deepEqual(_.functions(lodash), ['each', 'forEach'], basename);
|
||||
start();
|
||||
});
|
||||
});
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('output option');
|
||||
|
||||
(function() {
|
||||
var nestedPath = path.join(__dirname, 'a', 'b');
|
||||
@@ -1311,7 +1339,7 @@
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('stdout options');
|
||||
QUnit.module('stdout option');
|
||||
|
||||
(function() {
|
||||
var commands = [
|
||||
|
||||
Reference in New Issue
Block a user