]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/cli/print-transcode-command.ts
Relax bitrate/fps test
[github/Chocobozzz/PeerTube.git] / server / tests / cli / print-transcode-command.ts
index 27896f0310f804ca482dc53a9e1530268800cc7b..33b6cd27c6740dbde1e430c95abf80307da0c6e3 100644 (file)
@@ -1,13 +1,10 @@
 /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
 
-import 'mocha'
-import * as chai from 'chai'
+import { expect } from 'chai'
 import { buildAbsoluteFixturePath } from '@shared/core-utils'
 import { CLICommand } from '@shared/server-commands'
 import { VideoResolution } from '../../../shared/models/videos'
 
-const expect = chai.expect
-
 describe('Test print transcode jobs', function () {
 
   it('Should print the correct command for each resolution', async function () {
@@ -27,8 +24,8 @@ describe('Test print transcode jobs', function () {
       expect(command).to.includes('-r 25')
       expect(command).to.includes('-level:v 3.1')
       expect(command).to.includes('-g:v 50')
-      expect(command).to.includes(`-maxrate `)
-      expect(command).to.includes(`-bufsize `)
+      expect(command).to.includes(`-maxrate:v `)
+      expect(command).to.includes(`-bufsize:v `)
     }
   })
 })