@@ -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