Skip to content

Commit

Permalink
add fuse api test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeykosinski committed Sep 11, 2019
1 parent 3965992 commit 9c3f884
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 15 additions & 0 deletions src/server/utils/__tests__/fuseapi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// @flow
import fuseapi from '../fuseapi'

describe('fuseAPI', () => {
test('get list of wallet transaction', async done => {
const { result } = await fuseapi.getTxList({
address: '0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1',
page: 1,
offset: 10,
filterby: 'from'
})
expect(Array.isArray(result)).toBeTruthy()
done()
})
})
1 change: 0 additions & 1 deletion src/server/utils/fuseapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class FuseApi {
* } options
*/
async getTxList(options) {
const r = await this.runMethod('account', 'txlist', options)
return this.runMethod('account', 'txlist', options)
}

Expand Down

0 comments on commit 9c3f884

Please sign in to comment.