Bank Account Tech Tests

Ruby & JavaScript

This is a small tech test designed to practice maitaining code quality and a full test-driven process. It has been implemented in both Javascript and Ruby.

My JavaScript implementation was done in Node and as per the acceptance criteria, a user should be able to deposit funds to their account, withdraw funds from their account see a printed statement on teh screen. The statement should contain the date the transaction occured, the amount of credit or debit and the resulting account balance after the transaction. Below is screenshot of the program running in Node:



Code coverage was done using Jest and Rspec with 100% coverage achieved with both tech tests. Below is a screenshot of the Ruby implementation running in IRB: