@@ -374,11 +374,11 @@ describe("SemaphoreEthers", () => {
374374 expect ( mockRemove ) . toHaveBeenCalledWith ( "ProofValidated" )
375375 } )
376376
377- it ( "onGroupAdmin should call callback with groupId, oldAdmin, newAdmin and event" , ( ) => {
377+ it ( "onGroupAdminUpdated should call callback with groupId, oldAdmin, newAdmin and event" , ( ) => {
378378 const semaphore = new SemaphoreEthers ( "sepolia" , { address : "0x0000" } )
379379 const cb = jest . fn ( )
380380
381- semaphore . onGroupAdmin ( cb )
381+ semaphore . onGroupAdminUpdated ( cb )
382382 const handler = mockOn . mock . calls . find ( ( [ e ] ) => e === "GroupAdminUpdated" ) ! [ 1 ]
383383 const fakeEvent = { txHash : "0xbeef" }
384384
@@ -387,9 +387,9 @@ describe("SemaphoreEthers", () => {
387387 expect ( cb ) . toHaveBeenCalledWith ( "0xOLD" , "0xNEW" , fakeEvent )
388388 } )
389389
390- it ( "offGroupAdmin should remove all GroupAdminUpdated listeners" , ( ) => {
390+ it ( "offGroupAdminUpdated should remove all GroupAdminUpdated listeners" , ( ) => {
391391 const semaphore = new SemaphoreEthers ( "sepolia" , { address : "0x0000" } )
392- semaphore . offGroupAdmin ( )
392+ semaphore . offGroupAdminUpdated ( )
393393 expect ( mockRemove ) . toHaveBeenCalledWith ( "GroupAdminUpdated" )
394394 } )
395395 } )
0 commit comments