Example code for Unit Test development.
This is a sample code based on triangle (java) that implements the same functionality of triangle.
You need to have nodejs (12+) installed and npm.
Clone this repository:
git clone https://github.com/hfierros/triangle-typescript.git
Initialize the repository from npm:
npm i
And run the application:
npm run
The structure of the code is an overkill for the application, but will help to show unit test and mocks.