Skip to content

refactoring pharmacy#14

Open
AmirDahmouni wants to merge 9 commits intolibeo-tech:mainfrom
AmirDahmouni:main
Open

refactoring pharmacy#14
AmirDahmouni wants to merge 9 commits intolibeo-tech:mainfrom
AmirDahmouni:main

Conversation

@AmirDahmouni
Copy link
Copy Markdown

@AmirDahmouni AmirDahmouni commented Apr 10, 2022

Changelog :

-implement updateDrug method inside the drug class replace the nested if conditions with simple swicth/case to reduce complexity ( we could add new drug without reread all the previous code )
-implement increment and decrement benefit with conditions to assure that every benefit in interval 0-50
-add unit test for each drug

Instructions

-run npm install before start for testing
-run npm test
-run node index.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant