UNPKG

@bbc/react-transcript-editor

Version:

A React component to make transcribing audio and video easier and faster.

14 lines 567 B
import timecodeToSecondsHelper from './timecodeToSeconds.js'; describe('Timecode conversion TC- convertToSeconds', function () { it('Should be defined', () => { const demoTcValue = '00:10:00:00'; const result = timecodeToSecondsHelper(demoTcValue); expect(result).toBeDefined(); }); it('Should be able to convert from: hh:mm:ss:ff ', () => { const demoTcValue = '00:10:00:00'; const demoExpectedResultInSeconds = 600; const result = timecodeToSecondsHelper(demoTcValue); expect(result).toEqual(demoExpectedResultInSeconds); }); });