Metric-Imperial Converter 7th test

Tell us what’s happening:
Hi! I’m doing my first Quality Assurance Project and I can’t pass 7th pass.
It looks working fine but I feel that I’ve messed up without knowing it.
I am generally no aware of what I’m doing wrong so
If you have any time to check my code and you are not busy to help me
It would be really great to hear any kind of feedback for completing my project.

My glitch project link is

I’ve passed all the units test and functional test.

Thank you in advance!

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36.

Challenge: Metric-Imperial Converter

Link to the challenge:

2 Likes

Hello!

Yes, you’re correct. Your project is working as expected, is just that the tests were updated and the original project wasn’t. Sorry about that :sweat_smile:.

The fix is to, instead of returning {error: 'the error message'} return just the string:

res.send('the error message')

Where the error message should be replaced with invalid unit, invalid number or invalid number and unit.

Let us know if that works :slight_smile:.

1 Like

Thank you @skaparate !
I’ve fixed it and submit it ! :wink: thank you !

1 Like

3 posts were split to a new topic: Metric-Imperial Converter on Glitch