From 2b11a9ba2f0f98205374f605109355d9613d4f42 Mon Sep 17 00:00:00 2001 From: George Lima Date: Mon, 11 Feb 2019 11:47:40 -0300 Subject: [PATCH] test(mock-rpc): add z_getbalance mock --- __tests__/setup/mockAPI.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/__tests__/setup/mockAPI.js b/__tests__/setup/mockAPI.js index cfd7acb..359ad64 100644 --- a/__tests__/setup/mockAPI.js +++ b/__tests__/setup/mockAPI.js @@ -95,6 +95,10 @@ createTestServer({ return res.send({ result: [{ id: 'operation-id-1', status: 'success', result: { txid: 'txid-1' } }], }); + case 'z_getbalance': + return res.send({ + result: 5, + }); default: return null; }