From 9ccfc8fc6f02f3ae028f76cbaa0bbb995fc925b5 Mon Sep 17 00:00:00 2001 From: Duncan Mak Date: Thu, 20 Jun 2013 14:18:55 -0400 Subject: [PATCH] Fix the test to make it compile. --- async/async-tests.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/async/async-tests.ts b/async/async-tests.ts index e7b57a1f89..fefc3fd2a2 100644 --- a/async/async-tests.ts +++ b/async/async-tests.ts @@ -18,10 +18,10 @@ async.series([ function () { } ]); -var data; -function asyncProcess() { } +var data = []; +function asyncProcess(item, callback) { } async.map(data, asyncProcess, function (err, results) { - alert(results); + console.log(results); }); var openFiles = ['file1', 'file2'];