Commit Graph

17 Commits (90979e0631f8cac200a1bd7c75e88df89971841c)

Author SHA1 Message Date
Inga 🏳‍🌈 90979e0631 refactor: improved transacion service somewhat (closes #22) 10 months ago
Inga 🏳‍🌈 5138c12d9c refactor: unified getAmountWithExchange and getAmountWithoutExchange methods (closes #10) 10 months ago
Inga 🏳‍🌈 fbd6fb52c1 refactor: extracted rule-applying code to a separate method (closes #10) 10 months ago
Inga 🏳‍🌈 913d322494 feat: added one integration test (closes #19) 10 months ago
Inga 🏳‍🌈 836567ef68 feat: fixed applyRules logic (closes #16) 10 months ago
Inga 🏳‍🌈 108a7cce47 feat: implemented tests checking rules precedence (closes #13) 10 months ago
Inga 🏳‍🌈 61d8b18c0a fix: divide by 'rate' instead of multiplying by it, so that tests pass 10 months ago
Inga 🏳‍🌈 dd5c719345 fix: declared return type on getExchangeRate 10 months ago
Inga 🏳‍🌈 296fdb4945 fix: use base_amount to calculate commission 10 months ago
Inga 🏳‍🌈 dcf34b6791 refactor: better types 10 months ago
Inga 🏳‍🌈 ac7aabb7c4 refactor: rules now accept partial transaction object instead of TransactionInput 10 months ago
Inga 🏳‍🌈 279e5230e5 refactor: implemented async getExchangeRate method 10 months ago
Inga 🏳‍🌈 b453c3e479 chore: format all code files according to prettier rules 10 months ago
Inga 🏳‍🌈 8deb17f87b enabled no-floating-promises eslint rules to prevent #3 from happening again 10 months ago
Inga 🏳‍🌈 2d9c8e3069 fixed app crashing when database query rejects (closes #3) 10 months ago
Inga 🏳‍🌈 76f2ffefab switched from mysql to sqlite (closes #1) 10 months ago
Inga 🏳‍🌈 8b6669b296 Initial commit with test assignment 11 months ago