Skip to content

Commit

Permalink
Quickfix : use .toBe instead of ==
Browse files Browse the repository at this point in the history
  • Loading branch information
mesudip committed Dec 3, 2024
1 parent c65b09c commit 4327e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration_test/tests/6-on-chain-tests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ test.describe('Onchain Poll', () => {
const summaryMetadata = await fetchPollSummaryMetadata(extractedSummaryTxHash);
const voteTxSet=new Set(summaryMetadata.voteTransactions)

expect(summaryMetadata.voteTransactions.length == voteTxHashes.length,`OnChainVote Txs=${summaryMetadata.voteTransactions.length} pageVoteTxs=${voteTxHashes.length}: Expected to be equal`).toBeTruthy(); // Ensure metadata exists
expect(summaryMetadata.voteTransactions.length,`OnChainVote Txs=${summaryMetadata.voteTransactions.length} pageVoteTxs=${voteTxHashes.length}: Expected to be equal`).toBe(voteTxHashes.length)

// Validate metadata for each vote transaction
for (let txHash of voteTxHashes) {
Expand Down

0 comments on commit 4327e9d

Please sign in to comment.