From 4e9e66b079ff52e6b59508a408de47f766700606 Mon Sep 17 00:00:00 2001 From: GYY <421736079@qq.com> Date: Tue, 16 Jan 2018 18:37:49 +0800 Subject: [PATCH] fix: fix the test in async.spec.js (#1953) --- test/unit/specs/async.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/specs/async.spec.js b/test/unit/specs/async.spec.js index f9e2fc793..4cd82be9d 100644 --- a/test/unit/specs/async.spec.js +++ b/test/unit/specs/async.spec.js @@ -6,7 +6,7 @@ describe('Async utils', () => { const calls = [] const queue = [1, 2, 3, 4, 5].map(i => next => { calls.push(i) - setTimeout(done, 0) + setTimeout(next, 0) }) runQueue(queue, (fn, next) => fn(next), () => { expect(calls).toEqual([1, 2, 3, 4, 5])