It would be very convenient to have a combination of closeTo and changeTokenBalance matchers so that it's possible to check that balance changed within some margin of error. I propose to add optional field to changeTokenBalance: changeTokenBalance(token, address, amount, delta?)
It would be very convenient to have a combination of
closeTo
andchangeTokenBalance
matchers so that it's possible to check that balance changed within some margin of error. I propose to add optional field tochangeTokenBalance
:changeTokenBalance(token, address, amount, delta?)