From e33570b3f03e9c3fe7645224a602598720e1ce0c Mon Sep 17 00:00:00 2001 From: Griffithtp Date: Mon, 24 Jun 2019 21:49:22 +0100 Subject: [PATCH] fix: typescript warnings - prefer-rest-params --- jest/unit/components/__mocks__/api.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jest/unit/components/__mocks__/api.ts b/jest/unit/components/__mocks__/api.ts index 9f81368..d1bcd61 100644 --- a/jest/unit/components/__mocks__/api.ts +++ b/jest/unit/components/__mocks__/api.ts @@ -39,8 +39,7 @@ const register = (url, method = 'get', options = {}) => { * Bind API methods */ class API { - public request() { - const rest = arguments; + public request(...rest) { return register.call(null, ...rest); } }