From 4d2fed8c12625abc2f060c76b33faf375e20301c Mon Sep 17 00:00:00 2001 From: Alexandr Borisov Date: Mon, 10 Jun 2024 08:43:16 +0300 Subject: [PATCH] Add getQueue() tests --- __tests__/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/__tests__/index.js b/__tests__/index.js index d0a8d1d..6032427 100644 --- a/__tests__/index.js +++ b/__tests__/index.js @@ -81,10 +81,12 @@ it('support dynamic options', async function () { } await delay(90) expect(onSuccess.callCount).toEqual(2) + expect(http.getQueue().length).toEqual(1) await Promise.all(requests) var end = Date.now() expect(onSuccess.callCount).toEqual(3) + expect(http.getQueue().length).toEqual(0) expect(end - start).toBeGreaterThan(100) await delay(110)