Skip to content

Commit

Permalink
Update get_block_transaction_count.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
avkos committed Oct 3, 2024
1 parent d6fd3b0 commit ff57275
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/web3/test/e2e/get_block_transaction_count.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ describe(`${getSystemTestBackend()} tests - getBlockTransactionCount`, () => {
bytes: FMT_BYTES.HEX,
});
if (block === 'pending') {
// eslint-disable-next-line no-null/no-null
const expectedResult = result === null || Number(result) > 0;
// eslint-disable-next-line jest/no-conditional-expect
expect(result).toBeNull();
expect(expectedResult).toBeTruthy();
} else {
switch (format) {
case 'NUMBER_NUMBER':
Expand Down

0 comments on commit ff57275

Please sign in to comment.