mirror of https://github.com/Chocobozzz/PeerTube
chore(test): clean a bit
parent
2cc77485db
commit
b76328591a
|
@ -20,7 +20,7 @@ interface TestResult {
|
|||
CER: number
|
||||
duration: number
|
||||
engine: TranscriptionEngine
|
||||
dataThroughput: number // relevant ?
|
||||
// dataThroughput: number // relevant ?
|
||||
// cpus: CpuInfo[] // https://nodejs.org/docs/latest-v18.x/api/os.html#oscpus
|
||||
// cpuUsages: CpuUsage[] // https://nodejs.org/docs/latest-v18.x/api/process.html#processcpuusagepreviousvalue
|
||||
// // os.totalmem()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-expressions, no-new */
|
||||
/* eslint-disable @typescript-eslint/no-unused-expressions, no-new, max-len */
|
||||
import { TranscriptFile, TranscriptFileEvaluator } from '@peertube/peertube-transcription'
|
||||
import { buildAbsoluteFixturePath } from '@peertube/peertube-node-utils'
|
||||
import { join } from 'path'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
||||
/* eslint-disable @typescript-eslint/no-unused-expressions, max-len */
|
||||
import { expect, config } from 'chai'
|
||||
import { createLogger } from 'winston'
|
||||
import { join } from 'path'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
||||
/* eslint-disable @typescript-eslint/no-unused-expressions, max-len */
|
||||
import { expect, config } from 'chai'
|
||||
import { createLogger } from 'winston'
|
||||
import { join } from 'path'
|
||||
|
@ -43,7 +43,6 @@ describe('Linto timestamped Whisper transcriber', function () {
|
|||
format: 'vtt'
|
||||
})
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||
expect(existsSync(transcript.path), `Transcript file ${transcript.path} doesn't exist.`).to.be.true
|
||||
|
||||
// Whisper timestamped should produce a transcript with micro seconds precisions.
|
||||
|
@ -65,7 +64,6 @@ you
|
|||
format: 'srt'
|
||||
})
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||
expect(existsSync(transcript.path), `Transcript file ${transcript.path} doesn't exist.`).to.be.true
|
||||
expect(await readFile(transcript.path, 'utf8')).to.equal(
|
||||
`1
|
||||
|
@ -84,7 +82,6 @@ you
|
|||
format: 'txt'
|
||||
})
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||
expect(existsSync(transcript.path), `Transcript file ${transcript.path} doesn't exist.`).to.be.true
|
||||
expect(await readFile(transcript.path, 'utf8')).to.equal(`you
|
||||
`)
|
||||
|
@ -99,7 +96,6 @@ you
|
|||
format: 'txt'
|
||||
})
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||
expect(existsSync(transcript.path), `Transcript file ${transcript.path} doesn't exist.`).to.be.true
|
||||
expect(await readFile(transcript.path, 'utf8')).to.equal(
|
||||
`...
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
||||
/* eslint-disable @typescript-eslint/no-unused-expressions, max-len */
|
||||
import { expect, config } from 'chai'
|
||||
import { createLogger } from 'winston'
|
||||
import { join } from 'path'
|
||||
|
|
Loading…
Reference in New Issue