Passing tests not accepted by FCC

Tell us what’s happening:
Describe your issue in detail here.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36.

Challenge: Metric-Imperial Converter

Link to the challenge:

test('Whole number input', function(done) {
  assert.typeOf(convertHandler.getNum('44Kg'), 'number');
  done();
});

I wrote this test and it passes but it does not seem that FCC is accepting it as a solution

Maybe in the exercise you could have provided one working unit test and one working functional test as examples

Maybe I need to test for some JSON but I don’t know how to do it

Thanks and regards

You forgot to post the link to your code.

Hello @jenovs

Here is the link. Thanks!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.