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); } }