Skip to content

Commit

Permalink
fix: changed get_voters test to expect core types
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Sep 20, 2023
1 parent f4793c0 commit f83709a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ suite('Hyperion API', function () {
test('get_voters', async function () {
const response = await hyperion.get_voters('eoscafeblock', true, 100, 200);
assert.equal(response.voters.length, 24);
assert.deepEqual(response.voters[0], {
"account": "killc.ftw",
"weight": 20161076275.827435,
"last_vote": 297527904,
});
assert(response.voters[0].account.equals('killc.ftw'));
assert(response.voters[0].weight.equals(20161076275.827435));
assert(response.voters[0].last_vote.equals(297527904));
});
})

0 comments on commit f83709a

Please sign in to comment.