Metric monverter converHandeler.js

whats wrong with my Function convertHandler.getUnit(input) function logs ,its only working for one unit value

I tried adding a console.log to a function it also shows that its only working for the first iteration

      input.forEach(function(value) {
        assert.equal(convertHandler.getUnit(value), value);


    Function convertHandler.getUnit(input)

      1) For Each Valid Unit Inputs

was an issue with includes function I was using include

1 Like