From 21ab91aa125f185f24749260a5a612a8ebc2735a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BF=8A=E9=91=AB?= <18810544291@163.com> Date: Mon, 22 May 2017 03:43:04 +0800 Subject: may be better to use the length method (#1420) --- mocha_test/queue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mocha_test/queue.js b/mocha_test/queue.js index 192f7fc..7525c30 100644 --- a/mocha_test/queue.js +++ b/mocha_test/queue.js @@ -459,7 +459,7 @@ describe('queue', function(){ }, 5); setTimeout(function () { - expect(q._tasks.length).to.equal(1); + expect(q.length()).to.equal(1); expect(q.running()).to.equal(2); q.resume(); }, 15); -- cgit v1.2.1