UX: ceil dahsboard values

This commit is contained in:
Joffrey JAFFEUX
2018-05-30 16:32:43 +02:00
committed by GitHub
parent 6862194255
commit 43b1768987
6 changed files with 19 additions and 9 deletions

View File

@ -213,6 +213,8 @@ QUnit.test("number", assert => {
assert.equal(number(2499999), "2.5M", "it abbreviates millions");
assert.equal(number(1000000), "1.0M", "it abbreviates a million");
assert.equal(number(999999), "999k", "it abbreviates hundreds of thousands");
assert.equal(number(18.2), "18", "it returns a float number converted to an integer as a string");
assert.equal(number(18.6, { ceil: true }), "19", "it ceils the value if requested");
});
QUnit.test("durationTiny", assert => {