Quality Assurance Projects - Metric-Imperial Converter

What is your hint or solution suggestion?

You should return the string ‘invalid unit’ !!!,
not json {error: ‘invalid unit’} as in the example.

Challenge: Metric-Imperial Converter

Link to the challenge:

Welcome, feeedback.

Thank you, for taking the time to contribute.

After assessing the project and your hint, I have determined not to add your hint. The project is currently under development, and the user stories still mostly do not have tests.

For this specific case, the user stories are being made clear what is expected to be returned. Also, the test has been written to allow for either a string or an object.

Thank you, for your time and input.