From 4327e9d8af0cb0f0271ce10837a8225a873f80da Mon Sep 17 00:00:00 2001 From: Sudip Bhattarai Date: Tue, 3 Dec 2024 19:21:04 +0545 Subject: [PATCH] Quickfix : use .toBe instead of == --- integration_test/tests/6-on-chain-tests.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration_test/tests/6-on-chain-tests.spec.ts b/integration_test/tests/6-on-chain-tests.spec.ts index 6d35cad..eef2192 100644 --- a/integration_test/tests/6-on-chain-tests.spec.ts +++ b/integration_test/tests/6-on-chain-tests.spec.ts @@ -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) {