Update build.js, test-build.js and rebuild docs.

Former-commit-id: 385c6b4cb127ad8089622416758021556e413a0a
This commit is contained in:
John-David Dalton
2012-09-28 02:14:59 -07:00
parent 7036ed5e2f
commit 383b92b207
4 changed files with 152 additions and 157 deletions

View File

@@ -699,10 +699,17 @@
(function() {
['-c', '--stdout'].forEach(function(command, index) {
asyncTest('`lodash ' + command +'`', function() {
var start = _.once(QUnit.start);
var written,
start = _.once(QUnit.start),
write = process.stdout.write;
process.stdout.write = function(string) {
written = string;
};
build([command, 'exports=', 'include='], function(source) {
equal(source, '');
process.stdout.write = write;
equal(written, source);
equal(arguments.length, 1);
start();
});