Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Commit

Permalink
Address renames from #466 review
Browse files Browse the repository at this point in the history
  • Loading branch information
kerzhner committed May 9, 2019
1 parent be9aba4 commit 0c435c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { bigNumberify } from 'ethers/utils';
import { channelID } from 'fmg-core/lib/channel';
import { listen } from '..';
import AllocatorChannel from '../../models/allocatorChannel';
import { channel, depositContract } from './utils';
import { channel, depositIntoContract } from './utils';

jest.setTimeout(60000);
const channelId = channelID(channel);
Expand All @@ -27,13 +27,13 @@ describe('adjudicator listener', () => {
const eventCallback = async eventType => {
const postEventHoldings = await getHoldings();

const eventDeposit = bigNumberify(postEventHoldings).sub(bigNumberify(preEventHoldings));
expect(eventDeposit.toNumber()).toBeGreaterThanOrEqual(5);
const depositedAmount = bigNumberify(postEventHoldings).sub(bigNumberify(preEventHoldings));
expect(depositedAmount.toNumber()).toBeGreaterThanOrEqual(5);
done();
};

removeListeners = await listen(eventCallback);
await depositContract(provider, channelId);
await depositIntoContract(provider, channelId);
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function createDepositTransaction(destination: string, DepositLevel: string) {
};
}

export async function depositContract(
export async function depositIntoContract(
provider: ethers.providers.JsonRpcProvider,
participant: string,
amount = bigNumberify(5).toHexString(),
Expand Down

0 comments on commit 0c435c5

Please sign in to comment.