diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-08-16 01:55:48 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-08-17 08:32:16 +0800 |
commit | 8bce73dc679cb05353835d011b8e1dfcff7f4670 (patch) | |
tree | adc92957584ee92ba8da8e531ae24b701a908c57 /packages/contracts/test/tokens | |
parent | c13f538400e0ef9e06a5ea52e174979a5cc82bdc (diff) | |
download | dexon-0x-contracts-8bce73dc679cb05353835d011b8e1dfcff7f4670.tar dexon-0x-contracts-8bce73dc679cb05353835d011b8e1dfcff7f4670.tar.gz dexon-0x-contracts-8bce73dc679cb05353835d011b8e1dfcff7f4670.tar.bz2 dexon-0x-contracts-8bce73dc679cb05353835d011b8e1dfcff7f4670.tar.lz dexon-0x-contracts-8bce73dc679cb05353835d011b8e1dfcff7f4670.tar.xz dexon-0x-contracts-8bce73dc679cb05353835d011b8e1dfcff7f4670.tar.zst dexon-0x-contracts-8bce73dc679cb05353835d011b8e1dfcff7f4670.zip |
Fix typos, run prettier, and allow anyone to call on DummyERC721Token
Diffstat (limited to 'packages/contracts/test/tokens')
-rw-r--r-- | packages/contracts/test/tokens/erc721_token.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/contracts/test/tokens/erc721_token.ts b/packages/contracts/test/tokens/erc721_token.ts index bdf4a28a4..e61fd7d51 100644 --- a/packages/contracts/test/tokens/erc721_token.ts +++ b/packages/contracts/test/tokens/erc721_token.ts @@ -4,15 +4,15 @@ import { BigNumber } from '@0xproject/utils'; import * as chai from 'chai'; import { LogWithDecodedArgs } from 'ethereum-types'; -import { DummyERC721ReceiverContract } from '../../generated_contract_wrappers/dummy_erc721_receiver'; +import { + DummyERC721ReceiverContract, + DummyERC721ReceiverTokenReceivedEventArgs, +} from '../../generated_contract_wrappers/dummy_erc721_receiver'; import { DummyERC721TokenContract, DummyERC721TokenTransferEventArgs, } from '../../generated_contract_wrappers/dummy_erc721_token'; -import { - InvalidERC721ReceiverContract, - InvalidERC721ReceiverTokenReceivedEventArgs, -} from '../../generated_contract_wrappers/invalid_erc721_receiver'; +import { InvalidERC721ReceiverContract } from '../../generated_contract_wrappers/invalid_erc721_receiver'; import { artifacts } from '../utils/artifacts'; import { expectTransactionFailedAsync, expectTransactionFailedWithoutReasonAsync } from '../utils/assertions'; import { chaiSetup } from '../utils/chai_setup'; @@ -132,7 +132,7 @@ describe('ERC721Token', () => { expect(log.args._to).to.be.equal(to); expect(log.args._tokenId).to.be.bignumber.equal(tokenId); }); - it('should transfer the token is spender is individually approved', async () => { + it('should transfer the token if spender is individually approved', async () => { await web3Wrapper.awaitTransactionSuccessAsync( await token.approve.sendTransactionAsync(spender, tokenId), constants.AWAIT_TRANSACTION_MINED_MS, @@ -204,7 +204,7 @@ describe('ERC721Token', () => { const newOwner = await token.ownerOf.callAsync(tokenId); expect(newOwner).to.be.equal(to); const transferLog = txReceipt.logs[0] as LogWithDecodedArgs<DummyERC721TokenTransferEventArgs>; - const receiverLog = txReceipt.logs[1] as LogWithDecodedArgs<InvalidERC721ReceiverTokenReceivedEventArgs>; + const receiverLog = txReceipt.logs[1] as LogWithDecodedArgs<DummyERC721ReceiverTokenReceivedEventArgs>; expect(transferLog.args._from).to.be.equal(from); expect(transferLog.args._to).to.be.equal(to); expect(transferLog.args._tokenId).to.be.bignumber.equal(tokenId); @@ -265,7 +265,7 @@ describe('ERC721Token', () => { const newOwner = await token.ownerOf.callAsync(tokenId); expect(newOwner).to.be.equal(to); const transferLog = txReceipt.logs[0] as LogWithDecodedArgs<DummyERC721TokenTransferEventArgs>; - const receiverLog = txReceipt.logs[1] as LogWithDecodedArgs<InvalidERC721ReceiverTokenReceivedEventArgs>; + const receiverLog = txReceipt.logs[1] as LogWithDecodedArgs<DummyERC721ReceiverTokenReceivedEventArgs>; expect(transferLog.args._from).to.be.equal(from); expect(transferLog.args._to).to.be.equal(to); expect(transferLog.args._tokenId).to.be.bignumber.equal(tokenId); |