mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
12 lines
394 B
JavaScript
12 lines
394 B
JavaScript
import expect from 'expect';
|
|
|
|
import { convertSeconds } from './helpers';
|
|
|
|
describe('Timer convertSeconds helper', () => {
|
|
it('converts seconds to hh:mm:ss', () => {
|
|
expect(convertSeconds(3000)).toEqual('00:00:03');
|
|
expect(convertSeconds(30000)).toEqual('00:00:30');
|
|
expect(convertSeconds(300000)).toEqual('00:05:00');
|
|
expect(convertSeconds(0)).toEqual('00:00:00');
|
|
});
|
|
});
|