Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe("when the stream did start but not end", function() {
- beforeEach(async function() {
- await advanceBlockAtTime(
- now
- .plus(STANDARD_TIME_OFFSET)
- .plus(5)
- .toNumber(),
- );
- });
- describe("when the withdrawal amount is within the available balance", function() {
- const amount = new BigNumber(5).multipliedBy(1e18).toString(10);
- it("makes the withdrawal", async function() {
- const balance = await this.token.balanceOf(recipient);
- await this.sablier.withdraw(streamId, amount, opts);
- const newBalance = await this.token.balanceOf(recipient);
- balance.should.be.bignumber.equal(newBalance.minus(amount));
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement