mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
really basic version of mkdir -p for -o option
Former-commit-id: 0fb635efd2043ee901c4f4eae7c6670d5b44a068
This commit is contained in:
@@ -1073,9 +1073,11 @@
|
||||
QUnit.module('output options');
|
||||
|
||||
(function() {
|
||||
var nestedDir = 'test/mkdir/';
|
||||
var commands = [
|
||||
'-o a.js',
|
||||
'--output a.js'
|
||||
'--output a.js',
|
||||
'-o ' + nestedDir + 'a.js'
|
||||
];
|
||||
|
||||
commands.forEach(function(command, index) {
|
||||
@@ -1086,6 +1088,7 @@
|
||||
build(['-s'].concat(command.split(' ')), function(data) {
|
||||
equal(path.basename(data.outputPath, '.js'), (++counter ? 'a.min' : 'a'), command);
|
||||
start();
|
||||
fs.existsSync(nestedDir) && fs.rmdirSync(nestedDir);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user