Run npm install
Run npm test
- I ran out of time to write more inclusive tests at the end.
- But given more time could spend time writing tests checking for type and validating that values are in the expected shape.
Q) How might your design differ if the list of specialties was expected to never change? What if it changes frequently?
A) If the list never changed you could set it up as a keyed object which would make retreival of the corresponding value much faster and effective.