I was going through a function that emits multiple events. Usualyy, if a function emits a single event, we can check that during the test cases using:
await expect(contract.claimTokens(busd.address))
.to.emit(contract, "Claimed")
.withArgs(user.address, busd.address);
But what if a function has more than 1 event? How to compare that? Any answer will be appreciated.