diff --git a/packages/transcription/README.md b/packages/transcription/README.md index 9180cecc1..3006070b6 100644 --- a/packages/transcription/README.md +++ b/packages/transcription/README.md @@ -19,3 +19,8 @@ const deepLearningFrameworks: DeepLearningFramework = [ } ] ``` + + +What about the lifecycle of each transcriber ? +- install => installer +- update => udpater diff --git a/packages/transcription/src/duration.spec.ts b/packages/transcription/src/duration.spec.ts index f4131f31a..28888d040 100755 --- a/packages/transcription/src/duration.spec.ts +++ b/packages/transcription/src/duration.spec.ts @@ -1,22 +1,23 @@ -import { toHumanReadable, toTimecode } from './duration'; +import { expect } from 'chai' +import { toHumanReadable, toTimecode } from './duration.js' -describe('duration', () => { - test('toHumanReadable', async () => { - const ONE_MINUTE = 60000; - let humanDuration = toHumanReadable(ONE_MINUTE); - expect(humanDuration).toEqual('1m'); +describe('duration conversion functions', () => { + it('toHumanReadable', () => { + const ONE_MINUTE = 60000 + let humanDuration = toHumanReadable(ONE_MINUTE) + expect(humanDuration).to.equal('1m') - humanDuration = toHumanReadable(ONE_MINUTE * 60 + ONE_MINUTE); - expect(humanDuration).toEqual('1h 1m'); - }); + humanDuration = toHumanReadable(ONE_MINUTE * 60 + ONE_MINUTE) + expect(humanDuration).to.equal('1h 1m') + }) - test('toTimecode', async () => { - const MORE_OR_LESS_ONE_MINUTE = '60.41545'; - let timecode = toTimecode(MORE_OR_LESS_ONE_MINUTE); - expect(timecode).toEqual('00:01:00'); + it('toTimecode', () => { + const MORE_OR_LESS_ONE_MINUTE = '60.41545' + let timecode = toTimecode(MORE_OR_LESS_ONE_MINUTE) + expect(timecode).to.equal('00:01:00') - const ONE_HOUR = '3600'; - timecode = toTimecode(ONE_HOUR); - expect(timecode).toEqual('01:00:00'); - }); -}); + const ONE_HOUR = '3600' + timecode = toTimecode(ONE_HOUR) + expect(timecode).to.equal('01:00:00') + }) +}) diff --git a/packages/transcription/src/installer.ts b/packages/transcription/src/installer.ts deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/transcription/src/update.ts b/packages/transcription/src/update.ts deleted file mode 100644 index e69de29bb..000000000