@bbc/react-transcript-editor
Version:
A React component to make transcribing audio and video easier and faster.
15 lines (14 loc) • 569 B
JavaScript
import secondsToTimecode from './secondsToTimecode.js';
describe('Timecode conversion TC- convertToSeconds', function () {
it('Should be defined', () => {
const dmoSecondsValue = 600; // const demoExpectedTc = '00:10:00:00';
const result = secondsToTimecode(dmoSecondsValue);
expect(result).toBeDefined();
});
it('Should be able to convert to: hh:mm:ss:ff ', () => {
const dmoSecondsValue = 600;
const demoExpectedTc = '00:10:00:00';
const result = secondsToTimecode(dmoSecondsValue);
expect(result).toEqual(demoExpectedTc);
});
});