aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-25 17:07:22 +0800
committerFabio Berger <me@fabioberger.com>2018-04-25 17:07:22 +0800
commit9dc4ec6fb5cad36f8308643b42aea119a2732ada (patch)
tree984d31e1429141b693fccb11c9bdf4acc299ede6 /packages/contracts
parent0baaf1767bd8245af1135d785997ccd800dce950 (diff)
downloaddexon-sol-tools-9dc4ec6fb5cad36f8308643b42aea119a2732ada.tar
dexon-sol-tools-9dc4ec6fb5cad36f8308643b42aea119a2732ada.tar.gz
dexon-sol-tools-9dc4ec6fb5cad36f8308643b42aea119a2732ada.tar.bz2
dexon-sol-tools-9dc4ec6fb5cad36f8308643b42aea119a2732ada.tar.lz
dexon-sol-tools-9dc4ec6fb5cad36f8308643b42aea119a2732ada.tar.xz
dexon-sol-tools-9dc4ec6fb5cad36f8308643b42aea119a2732ada.tar.zst
dexon-sol-tools-9dc4ec6fb5cad36f8308643b42aea119a2732ada.zip
Fix prettier
Diffstat (limited to 'packages/contracts')
-rw-r--r--packages/contracts/test/zrx_token.ts12
1 files changed, 9 insertions, 3 deletions
diff --git a/packages/contracts/test/zrx_token.ts b/packages/contracts/test/zrx_token.ts
index ddb7f0b35..a5de67f64 100644
--- a/packages/contracts/test/zrx_token.ts
+++ b/packages/contracts/test/zrx_token.ts
@@ -109,7 +109,9 @@ describe('ZRXToken', () => {
await zeroEx.token.setAllowanceAsync(zrxAddress, owner, spender, amountToTransfer, {
gasLimit: constants.MAX_TOKEN_APPROVE_GAS,
});
- const didReturnTrue = await zrxToken.transferFrom.callAsync(owner, spender, amountToTransfer, { from: spender });
+ const didReturnTrue = await zrxToken.transferFrom.callAsync(owner, spender, amountToTransfer, {
+ from: spender,
+ });
expect(didReturnTrue).to.be.false();
});
@@ -121,13 +123,17 @@ describe('ZRXToken', () => {
const spenderAllowanceIsInsufficient = spenderAllowance.cmp(amountToTransfer) < 0;
expect(spenderAllowanceIsInsufficient).to.be.true();
- const didReturnTrue = await zrxToken.transferFrom.callAsync(owner, spender, amountToTransfer, { from: spender });
+ const didReturnTrue = await zrxToken.transferFrom.callAsync(owner, spender, amountToTransfer, {
+ from: spender,
+ });
expect(didReturnTrue).to.be.false();
});
it('should return true on a 0 value transfer', async () => {
const amountToTransfer = new BigNumber(0);
- const didReturnTrue = await zrxToken.transferFrom.callAsync(owner, spender, amountToTransfer, { from: spender });
+ const didReturnTrue = await zrxToken.transferFrom.callAsync(owner, spender, amountToTransfer, {
+ from: spender,
+ });
expect(didReturnTrue).to.be.true();
});