Skip to content

Commit 65225bb

Browse files
committed
test(integration-test-browser): integration test for txlistinternal
1 parent 2f6060a commit 65225bb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

packages/integration-test-browser/test/account-test.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,23 @@ describe('client', function () {
7272
throw new Error(err)
7373
})
7474
})
75+
it('txlistinternal', function (done) {
76+
this.retries(3)
77+
const client = new EtherscanClient.Client(validApiKey);
78+
const address = '0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3'
79+
const startblock = 0
80+
const endblock = 2702578
81+
const sort = 'asc'
82+
const promise = client.account('txlistinternal')(address, startblock, endblock, sort, 1, 100)
83+
promise.then(res => {
84+
assert.ok(res)
85+
assert.ok(res.status)
86+
assert.equal(res.status, 1)
87+
done()
88+
}).catch(err => {
89+
throw new Error(err)
90+
})
91+
})
7592
})
7693

7794
describe('contract', ()=> {

0 commit comments

Comments
 (0)