Files
30-seconds-of-code/test/toDecimalMark/toDecimalMark.test.js
Angelos Chalaris cc7b76d0b3 Test files linted
2018-08-03 10:39:26 +03:00

10 lines
334 B
JavaScript

const expect = require('expect');
const toDecimalMark = require('./toDecimalMark.js');
test('toDecimalMark is a Function', () => {
expect(toDecimalMark).toBeInstanceOf(Function);
});
test('convert a float-point arithmetic to the Decimal mark form', () => {
expect(toDecimalMark(12305030388.9087)).toBe('12,305,030,388.909');
});