Fix --output build unit test.

Former-commit-id: fafafe88dfec9d777418c9eb95a7643c0061ee23
This commit is contained in:
John-David Dalton
2013-02-08 07:18:55 -08:00
parent 6d1c6dfd16
commit fbf64585b7

View File

@@ -1013,10 +1013,11 @@
commands.forEach(function(command, index) {
asyncTest('`lodash ' + command +'`', function() {
var start = _.once(QUnit.start);
var counter = -1,
start = _.after(2, _.once(QUnit.start));
build(['-s'].concat(command.split(' ')), function(data) {
equal(path.basename(data.outputPath, '.js'), 'a', command);
equal(path.basename(data.outputPath, '.js'), (++counter ? 'a.min' : 'a'), command);
start();
});
});