@bbc/react-transcript-editor
Version:
A React component to make transcribing audio and video easier and faster.
13 lines (12 loc) • 601 B
JavaScript
import autoEdit2ToDraft from './index.js'; // TODO: could make this test run faster by shortning the two sample to one or two paragraphs?
import draftTranscriptExample from './sample/autoEdit2ToDraft-sample.js';
import autoEdit2TedTalkTranscript from './sample/autoEdit2TedTalkTranscript-sample.json';
describe('bbcKaldiToDraft', function () {
const result = autoEdit2ToDraft(autoEdit2TedTalkTranscript, 'text');
it('Should be defined', () => {
expect(result).toBeDefined();
});
it('Should be equal to expected value', () => {
expect(result).toEqual(draftTranscriptExample);
});
});