UNPKG

@gabioh/tommss

Version:

Transform time to format HH:mm:ss

18 lines (13 loc) 439 B
const { toMmss } = require('./') test('Function runs', () => { expect(toMmss (null)).toBe('The value igresed is not valid') }); test (' 2827,40 must be 47:07', () => { expect(toMmss(2827,40) ).toBe('47:07') }) test ('Must be a error ', () => { expect(toMmss('12121212ff') ).toBe('The value igresed is not valid') }) test (' 2827,40 must be 47:07', () => { expect(toMmss(10102827,40) ).toBe('47:07') })