Nicolás Venturo
3e82db2f6f
Migration to truffle 5 (and web3 1.0 (and BN)) ( #1601 )
...
* Now compiling using truffle 5.
* Migrated some test files, missing BN scientific notation usage.
* Now using BN time values.
* Migrate ERC20 tests.
* Migrate all ERC20 tests.
* Migrate utils, payment and ownership tests.
* All tests save ERC721 migrated.
* Migrated ERC721 tests.
* Fix lint errors.
* Delete old test helpers.
* Fix remaining crowdsale tests.
* Fix signature bouncer tests.
* Update how constants is used.
* Compile script pre-removes the build dir.
* Fix SafeMath tests.
* Revert "Compile script pre-removes the build dir."
This reverts commit 247e745113
.
* Fix linter errors.
* Upgrade openzeppelin-test-helpers dependency.
* Update openzeppelin-test-helpers dependency.
* Define math constants globally.
* Remove unnecessary ether unit.
* Roll back reduced ether amounts in tests.
* Remove unnecessary toNumber conversions.
* Delete compile script.
* Fixed failing test.
6 years ago
Aniket
70fd243e3b
Test setup helper added ( #1482 )
...
* signing prefix added
* Minor improvement
* Tests changed
* Successfully tested
* Minor improvements
* Minor improvements
* Revert "Dangling commas are now required. (#1359 )"
This reverts commit a6889776f4
.
* updates
* fixes #1404
* approve failing test
* suggested changes done
* ISafeERC20 removed
* conflict fixes
* fixes #1205
* minor change
* suggested changes
* reviewed changes
* final update
6 years ago
Nicolás Venturo
26f9cc8e74
Moved some test files around to better reflect the directory layout. ( #1428 )
...
(cherry picked from commit d8ab8a00f2
)
6 years ago
Nicolás Venturo
7cd0d5a452
Replaced assertJump, assertRevert and expectThrow with shouldFail. ( #1363 )
...
* Replaced assertJump, assertRevert and expectThrow with shouldFail.
* Fixed linter errors.
* Fixed typo.
* Made the helpers async.
(cherry picked from commit b0da0fded0
)
6 years ago
Nicolás Venturo
d8ab8a00f2
Moved some test files around to better reflect the directory layout. ( #1428 )
6 years ago
Nicolás Venturo
b0da0fded0
Replaced assertJump, assertRevert and expectThrow with shouldFail. ( #1363 )
...
* Replaced assertJump, assertRevert and expectThrow with shouldFail.
* Fixed linter errors.
* Fixed typo.
* Made the helpers async.
6 years ago
Leo Arias
08bf6bbed9
Add missing tests to ECSDA ( #1248 )
...
* fix: refactor sign.js and related tests
* fix: remove unused dep
* fix: update package.json correctly
* Add missing tests to ECRecovery
* fix lint
* Reorganize the tests
* Reuse signature
* fix static errors
* Apply suggestions by @frangion and @nventuro
* Remove only
* More suggestions
* Remove unnecessary max-len
* remove only
(cherry picked from commit 75c0a59bb4
)
6 years ago
Leo Arias
75c0a59bb4
Add missing tests to ECSDA ( #1248 )
...
* fix: refactor sign.js and related tests
* fix: remove unused dep
* fix: update package.json correctly
* Add missing tests to ECRecovery
* fix lint
* Reorganize the tests
* Reuse signature
* fix static errors
* Apply suggestions by @frangion and @nventuro
* Remove only
* More suggestions
* Remove unnecessary max-len
* remove only
6 years ago
Leo Arias
2441fd7d17
Move contracts to subdirectories ( #1253 )
...
* Move contracts to subdirectories
Fixes #1177 .
This Change also removes the LimitBalance contract.
* fix import
* move MerkleProof to cryptography
* Fix import
7 years ago
Matt Condon
1c57637fd5
fix: refactor sign.js and related tests ( #1243 )
...
* fix: refactor sign.js and related tests
* fix: remove unused dep
* fix: update package.json correctly
7 years ago
Nicolás Venturo
4fb9bb7020
Minor test style improvements ( #1219 )
...
* Changed .eq to .equal
* Changed equal(bool) to .to.be.bool
* Changed be.bool to equal(bool), disallowed unused expressions.
7 years ago
jacob
64c324e37c
remove arrow functions from js tests ( #1225 )
7 years ago
Nicolás Venturo
20cf885430
No longer assigning awaits to temporary variables. ( #1216 )
7 years ago
Nicolás Venturo
ac91af9a6a
Replace all asserts with chai.should ( #1183 )
...
* Moving towards chai.should.
* Fixed failing tests.
* Fixed linter errors.
* Revert package-lock.json changes.
* Fixed failing tests.
* s/eq/equal
* Addressed review comment
7 years ago
Nicolás Venturo
4544df47da
All tests now use account names, and dont use accounts[0] (except ERC… ( #1137 )
...
* All tests now use account names, and dont use accounts[0] (except ERC721)
* Added account names to some missing contracts.
7 years ago
Nicolás Venturo
567b773242
Prefer const in test files ( #1117 )
...
* Removed all instances of var.
* Sorted eslintrc rules.
* Made eslint rule severity explicit.
* Now prefering const over let.
7 years ago
Justus Perlwitz
e6c15b34da
Remove chai-as-promised ( #1116 )
...
* Test: Remove chai-as-promised calls
* Test/Helpers: expectThrow accepts optional message
* NPM: Remove chai-as-promised
* Contracts/DestructibleMock: Fix lint
7 years ago
Nicolás Venturo
67b67b791e
Changed before for beforeAll, refactored Bouncer tests. ( #1094 )
...
* Changed before for beforeAll, refactored Bouncer tests.
* Fixed linter errors.
* fix: updates for SignatureBouncer tests and voucher construction
7 years ago
Nicolás Venturo
cea2a85a42
Remove Babel ( #1074 )
...
* Test helpers no longer rely on Babel.
* Behaviours are no longer imported.
* Removed Babel dependency.
* Fixed linter errors.
7 years ago
Leonardo
99e4b081dc
ECRecover test should revert because of wrong calldata size ( #1050 )
...
* Assume that token is mintable.
* ECRecover test should revert because of wrong calldata size
* fix: use expectThrow
* fix: ignore failing test until solc^0.5.0
7 years ago
Matt Condon
6a7114fdb4
Bouncer contract implementation ( #883 )
...
* feat: implement bouncer contracts
* fix: rename Bouncer to SignatureBouncer
7 years ago
Francisco Giordano
a7e91856f3
Update to Truffle 4.1.5 and Ganache 6.1.0 ( #876 )
...
* Update to ganache-cli v6.1.0 and truffle v4.1.0
* Update to stable version of ganache-cli
* fix: update event emission warning
- Fix event emission warnings for solidity 4.21 after truffle has been
updated to use this version
* fix pr review comments
* update to truffle v4.1.5
* update package-lock
* add additional emit keywords
* update solidity-coverage to 0.4.15
* update to solium 1.1.6
* fix MerkleProof coverage analysis by testing through wrapper
* change version pragma to ^0.4.21
* fix solium linting errors
7 years ago
Chenyang Wu
e299a7950e
Change ECRecovery recover method's visibility to internal ( #818 )
...
* Change ECRecovery recover method's visibility to internal
* Adopt the test
* Remove unused imports
7 years ago
Matt Condon
f4228f1b49
fix: reference contract name rather than filepath ( #698 )
7 years ago
AugustoL
4fbd44fd40
Reorganize tests and add library folder
7 years ago
AugustoL
edbc64f337
Add missing semicolon in ECRecovery test
7 years ago
AugustoL
c73861d8b3
Use test message in ECRecovery tests and fix typos
7 years ago
AugustoL
d78bcbbae5
change web3.eth.accounts for accounts in ECRecovery test
7 years ago
AugustoL
326df13bf3
Add ECRecoveryMock contract
7 years ago
Matt Condon
d07bdccc0c
feat: manually fix linting errors across tests
7 years ago
Matt Condon
58abd66969
feat: rename all test files to include .test.js postfix
7 years ago
Matt Condon
8662846838
feat: apply eslint --fix across project
7 years ago
AugustoL
4f44427966
Added function helper, few changes on ECRecover lib
8 years ago
Augusto
f8c0fab5d8
Fixed tests and few changes on contract comments
8 years ago
Augusto
478d1b1a93
Removed safeRecover, using ecrecover method instead, recovering signature from entire hash
8 years ago
AugustoL
68c2bcb9dd
Removed .only on ECRecovery tests
8 years ago
Augusto
635c04378d
Removed ECRecovery mock contract, ECRecovery funcions are public constants
8 years ago
Augusto
4201d50dcf
ECRecovery library added with test and docs
8 years ago