Skip to content

Commit

Permalink
test: adjust latest block state conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
penovicp committed Dec 15, 2023
1 parent ac88085 commit f580edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/defaultProvider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('defaultProvider', () => {

test(`getStateUpdate(blockHash=${exampleBlockHash}, blockNumber=undefined)`, async () => {
const stateUpdate = await testProvider.getStateUpdate(exampleBlockHash);
if (!isPendingStateUpdate(stateUpdate)) {
if (isPendingStateUpdate(stateUpdate)) {
fail('exampleBlockHash is latest block, should not be pending');
}
expect(stateUpdate.block_hash).toBe(exampleBlockHash);
Expand Down

0 comments on commit f580edb

Please sign in to comment.