frappe-charts
Version:
https://frappe.github.io/charts
10 lines (9 loc) • 325 B
JavaScript
const assert = require('assert');
const helpers = require('../helpers');
describe('utils.helpers', () => {
it('should return a value fixed upto 2 decimals', () => {
assert.equal(helpers.floatTwo(1.234), 1.23);
assert.equal(helpers.floatTwo(1.456), 1.46);
assert.equal(helpers.floatTwo(1), 1.00);
});
});