Skip to content

Commit

Permalink
Update staking.test.ts (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
heliuchuan authored Oct 18, 2023
1 parent a7f5efb commit c264568
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/e2e/api/staking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe("staking api", () => {
});
expect(numDelegatorsData.length).toBeGreaterThan(5);
for (let i = 1; i <= 5; i += 1) {
expect(numDelegatorsData[i].num_active_delegator).toBeGreaterThan(numDelegatorsData[i + 1].num_active_delegator);
expect(numDelegatorsData[i].num_active_delegator).toBeGreaterThanOrEqual(
numDelegatorsData[i + 1].num_active_delegator,
);
}
const numDelegators = await aptos.getNumberOfDelegators({ poolAddress: numDelegatorsData[0].pool_address! });
expect(numDelegators).toEqual(numDelegatorsData[0].num_active_delegator);
Expand Down

0 comments on commit c264568

Please sign in to comment.