aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* rename fillTakerAmountInBaseUnits to fillTakerAmountFabio Berger2017-06-021-21/+21
|
* Rename coinBase to coinbaseLeonid Logvinov2017-06-022-12/+12
|
* Refactor balance & allowance testsLeonid Logvinov2017-06-021-47/+42
|
* Add tests and checks for fees balances and allowancesLeonid Logvinov2017-06-021-1/+44
|
* Add success test for fill with feesLeonid Logvinov2017-06-022-5/+33
|
* Add token utilsLeonid Logvinov2017-06-021-0/+23
|
* Add fill scenario with feesLeonid Logvinov2017-06-022-10/+41
|
* Add check for ROUNDING_ERROR and test for itLeonid Logvinov2017-06-022-18/+40
|
* Validate maker balance and allowance & testsLeonid Logvinov2017-06-021-0/+25
|
* Merge branch 'fillOrderAsync' of github.com:0xProject/0x.js into fillOrderAsyncFabio Berger2017-06-021-0/+17
|\
| * Add test for valid partial fillLeonid Logvinov2017-06-021-0/+17
| |
* | Fix getTransactionSenderAccountIfExistsAsync to return true senderAddress or ↵Fabio Berger2017-06-021-2/+2
|/ | | | undefined if non available
* Add test for insufficient balance and make all async tests asyncLeonid Logvinov2017-06-021-15/+32
|
* Introduce coinBase accountLeonid Logvinov2017-06-022-16/+29
| | | | | | Add makerAccount parameter Adjust tests Add more assertions to success test
* Fix testsLeonid Logvinov2017-06-021-2/+2
|
* WorkLeonid Logvinov2017-06-022-15/+30
|
* Create a FillsScenario utils module and use it in the fillOrder testsFabio Berger2017-06-022-37/+56
|
* Change test nameLeonid Logvinov2017-06-021-3/+2
|
* Make validateFillOrder asyncronousLeonid Logvinov2017-06-021-1/+2
|
* Add not enough taker balance testsLeonid Logvinov2017-06-021-7/+17
|
* Revert "Add test to check the balance"Leonid Logvinov2017-06-021-10/+0
| | | | This reverts commit 389c18e98e2b5663b1732d7c34f9b21afef66e44.
* Add test to check the balanceLeonid Logvinov2017-06-011-0/+10
|
* rename variableFabio Berger2017-06-011-2/+2
|
* Follow constants conventionLeonid Logvinov2017-06-011-2/+2
|
* Fix getOrderHashAsync testFabio Berger2017-06-011-0/+13
|
* remove unused argFabio Berger2017-06-012-7/+4
|
* Merge branch 'fillOrderAsync' of github.com:0xProject/0x.js into fillOrderAsyncFabio Berger2017-06-011-15/+3
|\
| * Merge branch 'fillOrderAsync' of github.com:0xProject/0x.js into fillOrderAsyncLeonid Logvinov2017-06-011-2/+2
| |\
| * | Remove duplicate declarationsLeonid Logvinov2017-06-011-15/+3
| | |
* | | Add missing comma and semi-colonFabio Berger2017-06-011-2/+2
| | |
* | | Stop passing exchangeAddress into getOrderHash and instead get it from the ↵Fabio Berger2017-06-012-24/+23
| |/ |/| | | | | artifacts
* | move external imports to topFabio Berger2017-06-011-2/+2
|/
* get rid of literal amount paramsFabio Berger2017-06-011-6/+16
|
* remove duplicate declarationsFabio Berger2017-06-011-3/+0
|
* Merge branch 'fillOrderAsync' of github.com:0xProject/0x.js into fillOrderAsyncFabio Berger2017-06-011-8/+18
|\ | | | | | | | | # Conflicts: # test/exchange_wrapper_test.ts
| * give some balance and allowance by defaultLeonid Logvinov2017-06-011-5/+4
| |
| * Add test, for throw when order is expiredLeonid Logvinov2017-06-011-3/+14
| |
* | Add async suffix and fix alignmentFabio Berger2017-06-011-9/+9
|/
* reorder variabledFabio Berger2017-06-011-3/+3
|
* remove legacy codeFabio Berger2017-06-011-1/+0
|
* reorder importFabio Berger2017-06-011-1/+1
|
* Merge branch 'fillOrderAsync' of github.com:0xProject/0x.js into fillOrderAsyncFabio Berger2017-06-011-9/+10
|\
| * Add shouldCheckTransferLeonid Logvinov2017-06-011-1/+1
| |
| * Refactor testsLeonid Logvinov2017-06-011-10/+11
| |
* | put external imports at the topFabio Berger2017-06-011-6/+6
| |
* | remove commentFabio Berger2017-06-011-1/+0
|/
* Merge branch 'fillOrderAsync' of github.com:0xProject/0x.js into fillOrderAsyncFabio Berger2017-06-011-3/+7
|\
| * Add timestamp parameter to order factoryLeonid Logvinov2017-06-011-3/+7
| |
* | Add comment for fillOrderAsync method, rename fillAmount to ↵Fabio Berger2017-06-011-3/+4
|/ | | | fillTakerAmountInBaseUnits and remove default value for shouldCheckTransfer
* Revert "Add EXPIRED test"Leonid Logvinov2017-06-012-29/+19
| | | | This reverts commit d8e35c364ea94b606810b340fb02d8706e257c3c.
* Add EXPIRED testLeonid Logvinov2017-06-012-19/+29
|
* Fix testsLeonid Logvinov2017-06-011-8/+2
|
* Add NOT_A_TAKER checkLeonid Logvinov2017-06-011-1/+10
|
* Add FILL_AMOUNT_IS_ZERO checkLeonid Logvinov2017-06-011-2/+2
|
* Add taker parameter to createSignedOrderLeonid Logvinov2017-06-012-3/+6
|
* Rename order to order_factoryLeonid Logvinov2017-06-012-1/+1
|
* Remove unnecessary checksLeonid Logvinov2017-06-011-5/+0
|
* Fix linter errorsLeonid Logvinov2017-06-012-22/+24
|
* Add dirty-chaiLeonid Logvinov2017-06-011-0/+4
|
* Allign parametersLeonid Logvinov2017-06-011-2/+2
|
* Use constLeonid Logvinov2017-06-011-1/+1
|
* Add setDefaultAccountLeonid Logvinov2017-06-011-2/+2
|
* Temp pushLeonid Logvinov2017-06-012-55/+58
|
* Merge branch 'master' into fillOrderAsyncLeonid Logvinov2017-06-011-26/+28
|\
| * Address feedbackLeonid Logvinov2017-05-311-26/+28
| |
* | Add setAllowance functionLeonid Logvinov2017-05-311-4/+18
| |
* | Fix linter errorsLeonid Logvinov2017-05-311-1/+1
| |
* | Remove debug outputLeonid Logvinov2017-05-311-3/+0
| |
* | Revert testsLeonid Logvinov2017-05-311-7/+43
| |
* | Add createSignedOrder functionLeonid Logvinov2017-05-311-6/+23
| |
* | Merge branch 'erc20transfer' into fillOrderAsyncLeonid Logvinov2017-05-312-2/+111
|\|
| * Add transfer function and tests for itLeonid Logvinov2017-05-311-0/+19
| |
| * remove unused importsFabio Berger2017-05-302-4/+0
| |
| * Add test for setProxyAllowanceAsync and additional test for ↵Fabio Berger2017-05-301-2/+32
| | | | | | | | getProxyAllowanceAsync
| * remove spaces after it keywordFabio Berger2017-05-301-2/+2
| |
| * Add first test for getProxyAllowanceAsyncFabio Berger2017-05-301-0/+9
| |
| * use token instead of erc20Fabio Berger2017-05-301-3/+3
| |
| * rename erc20Wrapper to tokenWrapper to be more generic in case we end up ↵Fabio Berger2017-05-301-1/+1
| | | | | | | | supporting another spec
| * Merge branch 'master' into erc20WrapperFabio Berger2017-05-304-10/+41
| |\ | | | | | | | | | | | | # Conflicts: # src/0x.js.ts
| * \ Merge branch 'tokenRegistry' into erc20WrapperFabio Berger2017-05-301-0/+0
| |\ \
| * | | Add tests for getBalanceAsyncFabio Berger2017-05-301-0/+55
| | | |
* | | | Refactor getOrderHash to accept order as an objectLeonid Logvinov2017-05-303-46/+43
| | | |
* | | | Remove fixtureLeonid Logvinov2017-05-301-35/+0
| | | |
* | | | Add first passing testLeonid Logvinov2017-05-301-4/+5
| | | |
* | | | replace test fixture with the one from testrpcLeonid Logvinov2017-05-302-35/+35
| | | |
* | | | Fix importLeonid Logvinov2017-05-301-1/+1
| | | |
* | | | Merge branch 'master' into fillOrderAsyncLeonid Logvinov2017-05-303-7/+82
|\ \ \ \ | | |_|/ | |/| |
| * | | use .be.undefined instead of .be.an('undefined')Fabio Berger2017-05-301-4/+4
| | | |
| * | | Refactor exchangeWrapper and tokenRegistryWrapper to use contract getter ↵Fabio Berger2017-05-301-2/+2
| | | | | | | | | | | | | | | | that instantiates contract instance if not already instantiated
| * | | Also test that web3Wrapper nested under tokenRegistryWrapper has updated ↵Fabio Berger2017-05-301-2/+4
| | | | | | | | | | | | | | | | provider
| * | | add assertions that contractInstances are not undefined before provider updateFabio Berger2017-05-301-0/+2
| | | |
| * | | Also instantiate tokenRegistry contract instanceFabio Berger2017-05-301-1/+2
| | | |
| * | | remove unused importFabio Berger2017-05-301-1/+0
| | | |
| * | | remove unused importFabio Berger2017-05-301-1/+0
| | | |
| * | | Make tokenRegistry contract instantiation lazy and clear it on provider updateFabio Berger2017-05-301-1/+2
| | | |
| * | | Merge branch 'master' into dontReinstantiateContractInstancesFabio Berger2017-05-301-0/+43
| |\ \ \
| | * \ \ Merge branch 'master' into tokenRegistryFabio Berger2017-05-301-4/+4
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # src/0x.js.ts
| | * | | | use to.have.lengthOfFabio Berger2017-05-301-2/+2
| | | |_|/ | | |/| |
| | * | | Merge branch 'removeSrcFilesNotUsedByTests' into tokenRegistryFabio Berger2017-05-301-0/+0
| | |\ \ \ | | | |_|/ | | |/| |
| | * | | Add tests for getTokensAsync including schema validationFabio Berger2017-05-301-0/+43
| | | | |
| * | | | Add tests for setProviderFabio Berger2017-05-302-3/+30
| | |_|/ | |/| |
| * | | make web3Wrapper a private instance variableFabio Berger2017-05-301-4/+4
| | |/ | |/|
* | | Temporarily remove testLeonid Logvinov2017-05-301-2/+1
| | |
* | | Append _test to exchange_wrapperLeonid Logvinov2017-05-301-1/+11
| | |
* | | Add order utilsLeonid Logvinov2017-05-301-0/+21
| | |
* | | Add first order fixtureLeonid Logvinov2017-05-301-0/+35
| | |
* | | Merge branch 'master' into fillOrderAsyncLeonid Logvinov2017-05-301-0/+0
|\| |
| * | name exchangeWrapper test file properlyFabio Berger2017-05-301-0/+0
| |/
* / Finish ecSignature renamingLeonid Logvinov2017-05-301-1/+1
|/
* Fix typosFabio Berger2017-05-291-2/+2
|
* empty stubs array before next test runsFabio Berger2017-05-291-0/+1
|
* Merge branch 'master' into addSignOrderHashAndTestsFabio Berger2017-05-292-15/+12
|\ | | | | | | | | | | | | # Conflicts: # package.json # src/globals.d.ts # test/0x.js_test.ts
| * Merge pull request #16 from 0xProject/umd-testsFabio Berger2017-05-292-15/+12
| |\ | | | | | | Umd tests
| | * Use only 0x public interface in contract wrapper testsLeonid Logvinov2017-05-291-14/+11
| | |
| | * Use constants from test utilsLeonid Logvinov2017-05-291-1/+1
| | |
* | | Use disable-next-line instead of disable and always put rule that is being ↵Fabio Berger2017-05-291-4/+2
| | | | | | | | | | | | disabled
* | | Implement tests for signOrderHashAsync that test the logic for Parity < ↵Fabio Berger2017-05-291-0/+72
|/ / | | | | | | v1.6.6, >1.6.6 and other nodes
* / don't use uppercase for constant variable unless it's global to the entire fileFabio Berger2017-05-291-3/+3
|/
* Fix importsLeonid Logvinov2017-05-292-4/+4
|
* Merge branch 'master' of github.com:0xProject/0x.jsFabio Berger2017-05-296-2/+197
|\ | | | | | | | | | | # Conflicts: # src/ts/0x.js.ts # src/ts/utils/utils.ts
| * improve commentFabio Berger2017-05-271-1/+2
| |
| * rename BlockClean to BlockchainLifecycle and setupAsync to startAsync, ↵Fabio Berger2017-05-272-7/+7
| | | | | | | | restoreAsync to revertAsync
| * import reorderFabio Berger2017-05-261-1/+1
| |
| * remove stray console logFabio Berger2017-05-261-1/+0
| |
| * Add missing return typesFabio Berger2017-05-262-4/+4
| |
| * Setup blockchain snapshotting before/after every test, implemented unit ↵Fabio Berger2017-05-265-0/+194
| | | | | | | | tests for exchangeWrapper.isValidSignature
| * Postfix test files with `_test`Fabio Berger2017-05-261-0/+0
|/
* Address feedbackLeonid Logvinov2017-05-261-4/+5
|
* Port getOrderHashLeonid Logvinov2017-05-251-0/+37
|
* Fix bracesLeonid Logvinov2017-05-251-0/+2
|
* Merge branch 'master' into isValidOrderHashLeonid2017-05-251-1/+22
|\
| * Add toUnitAmount and toBaseUnitAmount static helpers and testsFabio Berger2017-05-251-1/+24
| |
* | Address feedbackLeonid Logvinov2017-05-251-1/+5
| |
* | Merge branch 'master' into isValidOrderHashLeonid2017-05-251-10/+6
|\|
| * Use expect.to.throwFabio Berger2017-05-251-24/+4
| |
| * Merge branch 'master' into addSchemasFabio Berger2017-05-251-0/+13
| |\ | | | | | | | | | | | | # Conflicts: # package.json
| * | remove stray console logFabio Berger2017-05-251-1/+0
| | |
| * | Fix malformed tests to check for thrown assertionFabio Berger2017-05-251-10/+27
| | |
* | | Fix testsLeonid Logvinov2017-05-251-1/+1
| | |
* | | Port isValidOrderHash and testsLeonid Logvinov2017-05-251-0/+10
| |/ |/|
* | Add generateSalt and tests for itLeonid Logvinov2017-05-251-0/+13
|/
* Fix test that was passing an invalid address (now caught by our assertions), ↵Fabio Berger2017-05-251-1/+2
| | | | to instead pass a valid but unrelated address as the test name suggests
* Address feedbackLeonid Logvinov2017-05-251-1/+2
|
* Add test for malformed sLeonid Logvinov2017-05-251-0/+10
|
* change tests descriptionsLeonid Logvinov2017-05-251-15/+24
|
* Add test vector sourceLeonid Logvinov2017-05-251-0/+1
|
* Add isSignatureValid method and tests for itLeonid Logvinov2017-05-251-4/+46
|
* Remove spacesLeonid Logvinov2017-05-241-1/+1
|
* Add initial testing config and a dummy testLeonid Logvinov2017-05-241-0/+12