From f3f22ec879a28165e41f02352eff72cae69cbdcf Mon Sep 17 00:00:00 2001 From: argishtyfirst Date: Fri, 4 Feb 2022 19:04:44 +0400 Subject: [PATCH] fix: tests by adding dummy address to keep the argument sequence right --- src/api/getWithdrawals.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/getWithdrawals.test.js b/src/api/getWithdrawals.test.js index 03f83a48..e5fbef57 100644 --- a/src/api/getWithdrawals.test.js +++ b/src/api/getWithdrawals.test.js @@ -56,6 +56,7 @@ describe('dvf.getWithdrawals', () => { const nonce = Date.now() / 1000 + '' const signature = await dvf.sign(nonce.toString(16)) const token = 'ETH' + const address = '0x49e4d1e2aa7d026188251392dd2d335c176d846d8a894a8092c835f3b345e2ad' const apiResponse = [ { @@ -85,7 +86,7 @@ describe('dvf.getWithdrawals', () => { .post('/v1/trading/r/getPendingWithdrawals', payloadValidator) .reply(200, apiResponse) - const result = await dvf.getWithdrawals(token, nonce, signature) + const result = await dvf.getWithdrawals(token, address, nonce, signature) expect(payloadValidator).toBeCalled() expect(result).toEqual(apiResponse)