text: /*
  *
  *
  *       FILL IN EACH UNIT TEST BELOW COMPLETELY
  *       -----[Keep the tests in the same order!]----
  *       (if additional are added, keep them at the very end!)
  */
  
  var chai = require('chai');
  var assert = chai.assert;
  var ConvertHandler = require('../controllers/convertHandler.js');
  
  var convertHandler = new ConvertHandler();
  
  suite('Unit Tests', function(){
    
    suite('Function convertHandler.getNum(input)', function() {
      
      test('Whole number input', function(done) {
        var input = '32L';
        assert.equal(convertHandler.getNum(input), 32);
        done();
      });
      
      test('Decimal Input', function(done) {
        var input = '3.1mi';
        assert.equal(convertHandler.getNum(input), 3.1);
        done();
      });
      
      test('Fractional Input', function(done) {
        var input = '4/8l';
        assert.equal(convertHandler.getNum(input), 4 / 8);
        done();
      });
      
      test('Fractional Input w/ Decimal', function(done) {
        var input = '4.5/2km';
        assert.equal(convertHandler.getNum(input), 4.5 / 2);
        done();
      });
      
      test('Invalid Input (double fraction)', function(done) {
        var input = '8/2/2l';
        assert.equal(convertHandler.getNum(input), undefined);
        done();
      });
      
      test('No Numerical Input', function(done) {
        var input = 'lbs';
        assert.equal(convertHandler.getNum(input), 1);
        done();
      }); 
      
    });
    
    suite('Function convertHandler.getUnit(input)', function() {
      
      test('For Each Valid Unit Inputs', function(done) {
        var input = ['gal','l','mi','km','lbs','kg','GAL','L','MI','KM','LBS','KG'];
        input.forEach(function(value) {
          assert.equal(convertHandler.getUnit(value), value.toLowerCase());
        });
        done();
      });
      
      test('Unknown Unit Input', function(done) {
        const input = '3.1pound'
        assert.equal(convertHandler.getUnit(input), undefined);
        done();
      });  
      
    });
    
    suite('Function convertHandler.getReturnUnit(initUnit)', function() {
      
      test('For Each Valid Unit Inputs', function(done) {
        var input = ['gal','l','mi','km','lbs','kg'];
        var expect = ['l','gal','km','mi','kg','lbs'];
        input.forEach(function(ele, i) {
          assert.equal(convertHandler.getReturnUnit(ele), expect[i]);
        });
        done();
      });
      
    });  
    
    suite('Function convertHandler.spellOutUnit(unit)', function() {
      
      test('For Each Valid Unit Inputs', function(done) {
        var input = ['gal','l','mi','km','lbs','kg'];
        var expect = ['gallons', 'liters', 'miles', 'kilometers', 'pounds', 'kilograms'];
        input.forEach((ele, i) => {
          assert.equal(convertHandler.spellOutUnit(ele), undefined)
        });
        done(); 
      });
      
    });
    
    suite('Function convertHandler.convert(num, unit)', function() {
      
      test('Gal to L', function(done) {
        var input = [5, 'gal'];
        var expected = 18.9271;
        assert.approximately(convertHandler.convert(input[0],input[1]),expected,0.1); //0.1 tolerance
        done();
      });
      
      test('L to Gal', function(done) {
        const input = [5, 'l'];
        const expected = 1.3208;
        assert.approximately(convertHandler.convert(input[0],input[1]),expected,0.1); //0.1 tolerance
        done();
      });
      
      test('Mi to Km', function(done) {
        const input = [3.1, 'mi'];
        const expected = 4.989;
        assert.approximately(convertHandler.convert(input[0],input[1]),expected,0.1); //0.1 tolerance
        done();
      });
      
      test('Km to Mi', function(done) {
        const input = [100, 'km'];
        const expected = 62.14;
        assert.approximately(convertHandler.convert(input[0],input[1]),expected,0.1); //0.1 tolerance
        done();
      });
      
      test('Lbs to Kg', function(done) {
        const input = [6, 'lbs'];
        const expected = 2.7216;
        assert.approximately(convertHandler.convert(input[0],input[1]),expected,0.1); //0.1 tolerance
        done();
      });
      
      test('Kg to Lbs', function(done) {
        const input = [50, 'kg'];
        const expected = 110.23;
        assert.approximately(convertHandler.convert(input[0],input[1]),expected,0.1); //0.1 tolerance
        done();
      });
      
    });
  
  });
  