]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/extra-utils/videos/captions-command.ts
Add bin directory creation for parallel tests
[github/Chocobozzz/PeerTube.git] / shared / extra-utils / videos / captions-command.ts
index 908b6dae6b3b1f93b6aa1898a261081d628fcaa8..a65ea99e33dab71ccb1b15be2c130f18376b03e5 100644 (file)
@@ -1,11 +1,10 @@
-import { ResultList, VideoCaption } from '@shared/models'
-import { HttpStatusCode } from '../../core-utils/miscs/http-error-codes'
-import { buildAbsoluteFixturePath } from '../miscs/miscs'
+import { HttpStatusCode, ResultList, VideoCaption } from '@shared/models'
+import { buildAbsoluteFixturePath } from '../miscs'
 import { AbstractCommand, OverrideCommandOptions } from '../shared'
 
 export class CaptionsCommand extends AbstractCommand {
 
-  createVideoCaption (options: OverrideCommandOptions & {
+  add (options: OverrideCommandOptions & {
     videoId: string | number
     language: string
     fixture: string
@@ -33,7 +32,7 @@ export class CaptionsCommand extends AbstractCommand {
     })
   }
 
-  listVideoCaptions (options: OverrideCommandOptions & {
+  list (options: OverrideCommandOptions & {
     videoId: string | number
   }) {
     const { videoId } = options
@@ -48,7 +47,7 @@ export class CaptionsCommand extends AbstractCommand {
     })
   }
 
-  deleteVideoCaption (options: OverrideCommandOptions & {
+  delete (options: OverrideCommandOptions & {
     videoId: string | number
     language: string
   }) {