Skip to content

Conversation

@sziani
Copy link

@sziani sziani commented Apr 20, 2022

Hello !

I created my own branch szianiTest to keep my code isolated for adding this new feature.

  • Update of the if statements in "pharmacy.js" with a switch statement to have a cleaner code
  • Adding 10 tests on "pharmacy.test.js" to secure our logic
  • new output.txt was also pushed
  • Adding "Dafalgan" to index.js to test the new drug

What I do not succeed:

  • Adding a new "pharmacy.ts" which generates my actual "pharmacy.js" file
  • Reduce drastically the actual lines of code from the original file

Thank you for this test I had fun working on it.

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