Mayukha Vadari
b522e703b4
feat: add client.getLedgerIndex ( #1668 )
...
* write getLedgerIndex
* add to client
* rename file
* add tests
* remove unused import
* fix browser tests
* respond to comments, more cleanup
2021-10-04 14:11:26 -04:00
Mukul Jangid
f2216446e5
test: write tests for sugar functions ( #1631 )
...
* test: write tests for sugar functions
2021-10-04 14:10:13 -04:00
Mayukha Vadari
98c9b9bc14
ci: run lint tests ( #1603 )
...
* turn on lint tests
* remove tsc
* fix errors in src/utils/hashes
* fix linter errors in src/utils
* fix lint issues in test/
* resolve lint issues in src/client
* resolve dependency cycle
* resolve other linting issues in src/models
* resolve rest of linting issues
* fix tests
* fix linting errors in test/integration
* fix rest of linting issues
* fix test name
2021-10-04 14:10:13 -04:00
Mukul Jangid
10445cff01
Refactor: Lint test/client ( #1602 )
...
* lint test/client
2021-10-04 14:10:13 -04:00
Nathan Nichols
3cbdbac4f9
fix: remove the sugar/parse directory ( #1622 )
...
* fix: remove the sugar/parse directory
* feat: adds lsf flags
2021-10-04 14:10:13 -04:00
Mukul Jangid
fd78d1edcd
refactor: Reimplement sugar functions and clean up ( #1559 )
...
* refactor: Reimplement sugar functions and clean up
2021-10-04 14:10:13 -04:00
Mayukha Vadari
949cc031ee
Lints top-level test files ( #1594 )
...
* lint broadcastClient
* lint client
* fix most of connection
* remove unused files
* lint mockRippled
* lint mockRippledTest
* lint runClientTests
* lint setupClient
* lint setupClientWeb
* lint shamap
* lint testUtils
* resolve tsc issues
* Fix tests
* lint rest of connection
* respond to comments
2021-10-04 14:10:12 -04:00
Nathan Nichols
e200de3073
Adds @xrplf prettier config ( #1598 )
...
* build: new prettier config
2021-10-04 14:10:11 -04:00
Mayukha Vadari
6268b9ea26
test: removes the use of TestSuite ( #1566 )* switch all methods to new format* clean up rippleClient* rename files to remove ripple from name* additional cleanup
2021-10-04 14:10:11 -04:00
Mayukha Vadari
b8be6c2f1b
refactor: improves mock rippled structure ( #1569 )
...
* better error handling + tests
* fix tests
* change addResponse to take a string instead of a Request
* remove unneeded change
* respond to comments
* fix tests, re-lint
* improve error message
2021-10-04 14:10:11 -04:00
Mayukha Vadari
759e075e54
refactor: use chai instead of assert-diff ( #1570 )
...
* assert-diff -> chai
* fix tests
* remove package
* fix rebase
2021-10-04 14:10:11 -04:00
Nathan Nichols
8b95ee5fab
build: Initial linting setup ( #1560 )
...
* sets up linting config and runs `yarn lint --fix` once, so that all changes will show up correctly in future PRs.
* Note that there are still a lot of linter errors.
2021-10-04 14:10:10 -04:00
Mayukha Vadari
09ef8595e7
refactor: move fixtures closer to tests (part 2) ( #1561 )
...
* move echo
* move fee
* move subscribe/unsubscribe
* move ledger_current
* move ledger_data
* move submit/submit_multisigned
* remove account_tx/account_offers/gateway_balances
* move account_info
* remove ledger_entry
* remove tx
* remove account_lines
* remove ripple_path_find
* remove ledger
* remove book_offers
* move ping
* remove global_config
* move test_command
* additional mock-rippled cleanup
* add explanatory comment to mock.addResponse
2021-10-04 14:10:10 -04:00
Mayukha Vadari
f9fe5936b1
refactor: rename all test files to camelCase ( #1562 )
...
* rename files to camelCase
* fix imports
* more renames
* pull all client tests out of individual folders
* fix imports
* fix tests
2021-10-04 14:10:10 -04:00