From fbf64585b7d17ab5612e851e863d2395b478b665 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 8 Feb 2013 07:18:55 -0800 Subject: [PATCH] Fix `--output` build unit test. Former-commit-id: fafafe88dfec9d777418c9eb95a7643c0061ee23 --- test/test-build.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test-build.js b/test/test-build.js index 60143b362..8b7b141d2 100644 --- a/test/test-build.js +++ b/test/test-build.js @@ -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(); }); });