dont know why fcc is not passing these for me, both unit and functional tests along with every other stuff passed in my repl console, my imperial converter works just fine, bt fcc seems not to be passing just these for me even tho its showing on the fcc page that both are complete and passing…
what do i need to do?
Have you inputted NODE_ENV as key, and test as value in the padlock icon?
If it still does not pass the 16 unit tests, you probably need to console log all the inputs and outputs in each function, to see what the specs input and what your functions output.
What the user story asked for you to return if input is invalid number?
When I said console.log input and output, I meant to do the debugging on your controller function, not your test units.
You’ve changed the format in your unit tests file. The test that checks for passing unit tests assumes all 16 tests are in one suite, with the correct name, in the unit tests file. You’ve reformatted it and you actually have several suites. Check to the original boilerplate to get the original name and make sure all the tests are in the one suite.
I told you the bits you’re missing to pass the test. What the user stories asked you to return for invalid inputs? what your test specs is testing for the return value on invalid inputs? And what your controller function’s return value for invalid inputs?.
yeah i get it now…this has something to do with convertHandler getNum function or the regex…my converter never returns “invalid number and unit” or “invalid number” even when i test non-numeric characters against valid/invalid units. ill have to a break from this, dont really know how go abt it. thanks so much.