// jshint esversion: 6
'use strict';

import {formatSeconds} from './utils';

describe('utils', () => {
    it('duration formating (mm:ss) (less than hour)', () => {
        const result = formatSeconds(1);
        expect(result).toBe('00:01');
    });

    it('duration formating (H:mm:ss) (greater than or equal to hour)', () => {
        const result = formatSeconds(60 * 60 + 1);
        expect(result).toBe('1:00:01');
    });
});
