Skip to content

Commit c5d8f9f

Browse files
refactor: breaking test
1 parent cc6be2e commit c5d8f9f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

apps/dispatcher/src/services/triggers/vote-confirmation-trigger.service.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function createHandler() {
2121
notifications.forEach(n => sentEventIds.add(n.event_id));
2222
},
2323
getWalletOwners: async () => [],
24-
getWalletOwnersBatch: async () => ({ '0xVoter123': [stubUser] }),
24+
getWalletOwnersBatch: async () => ({ '0xvoter123': [stubUser] }),
2525
getFollowedAddresses: async () => []
2626
},
2727
{
@@ -43,9 +43,9 @@ describe('VoteConfirmationTriggerHandler', () => {
4343
await handler.handleMessage({
4444
triggerId: 'vote-confirmation',
4545
events: [
46-
{ daoId: 'test-dao', proposalId: 'proposal-1', voterAccountId: '0xVoter123', support: 'for', votingPower: '1000000000000000000', timestamp: '2026-01-01T00:00:00Z', txHash: '0xSameTxHash', proposalDescription: 'Proposal 1' },
47-
{ daoId: 'test-dao', proposalId: 'proposal-2', voterAccountId: '0xVoter123', support: 'against', votingPower: '1000000000000000000', timestamp: '2026-01-01T00:00:00Z', txHash: '0xSameTxHash', proposalDescription: 'Proposal 2' },
48-
{ daoId: 'test-dao', proposalId: 'proposal-3', voterAccountId: '0xVoter123', support: 'abstain', votingPower: '1000000000000000000', timestamp: '2026-01-01T00:00:00Z', txHash: '0xSameTxHash', proposalDescription: 'Proposal 3' },
46+
{ daoId: 'test-dao', proposalId: 'proposal-1', voterAddress: '0xVoter123', support: 1, votingPower: '1000000000000000000', timestamp: 1767225600, transactionHash: '0xSameTxHash', proposalTitle: 'Proposal 1' },
47+
{ daoId: 'test-dao', proposalId: 'proposal-2', voterAddress: '0xVoter123', support: 0, votingPower: '1000000000000000000', timestamp: 1767225600, transactionHash: '0xSameTxHash', proposalTitle: 'Proposal 2' },
48+
{ daoId: 'test-dao', proposalId: 'proposal-3', voterAddress: '0xVoter123', support: 2, votingPower: '1000000000000000000', timestamp: 1767225600, transactionHash: '0xSameTxHash', proposalTitle: 'Proposal 3' },
4949
]
5050
});
5151

0 commit comments

Comments
 (0)