You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

10 lines
325 B

  1. const assert = require('assert');
  2. const helpers = require('../helpers');
  3. describe('utils.helpers', () => {
  4. it('should return a value fixed upto 2 decimals', () => {
  5. assert.equal(helpers.floatTwo(1.234), 1.23);
  6. assert.equal(helpers.floatTwo(1.456), 1.46);
  7. assert.equal(helpers.floatTwo(1), 1.00);
  8. });
  9. });