Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. describe("when the stream did start but not end", function() {
  2. beforeEach(async function() {
  3. await advanceBlockAtTime(
  4. now
  5. .plus(STANDARD_TIME_OFFSET)
  6. .plus(5)
  7. .toNumber(),
  8. );
  9. });
  10.  
  11. describe("when the withdrawal amount is within the available balance", function() {
  12. const amount = new BigNumber(5).multipliedBy(1e18).toString(10);
  13.  
  14. it("makes the withdrawal", async function() {
  15. const balance = await this.token.balanceOf(recipient);
  16. await this.sablier.withdraw(streamId, amount, opts);
  17. const newBalance = await this.token.balanceOf(recipient);
  18. balance.should.be.bignumber.equal(newBalance.minus(amount));
  19. });
  20. });
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement