diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-21 13:58:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-21 13:58:35 +0200 |
commit | c63830f15403ac4e750829f27d8bbbdc9a59282c (patch) | |
tree | f35048f1b2249bb3eec916964c084b1cd60f7bf3 /server/tests/api/videos/video-imports.ts | |
parent | 4d029ef8ec3d5274eeaa3ee6d808eb7035e7faef (diff) | |
download | PeerTube-c63830f15403ac4e750829f27d8bbbdc9a59282c.tar.gz PeerTube-c63830f15403ac4e750829f27d8bbbdc9a59282c.tar.zst PeerTube-c63830f15403ac4e750829f27d8bbbdc9a59282c.zip |
Rename captions commands
Diffstat (limited to 'server/tests/api/videos/video-imports.ts')
-rw-r--r-- | server/tests/api/videos/video-imports.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts index 192f5232e..2eac130d2 100644 --- a/server/tests/api/videos/video-imports.ts +++ b/server/tests/api/videos/video-imports.ts | |||
@@ -59,7 +59,7 @@ describe('Test video imports', function () { | |||
59 | expect(videoTorrent.name).to.contain('你好 世界 720p.mp4') | 59 | expect(videoTorrent.name).to.contain('你好 世界 720p.mp4') |
60 | expect(videoMagnet.name).to.contain('super peertube2 video') | 60 | expect(videoMagnet.name).to.contain('super peertube2 video') |
61 | 61 | ||
62 | const bodyCaptions = await server.captions.listVideoCaptions({ videoId: idHttp }) | 62 | const bodyCaptions = await server.captions.list({ videoId: idHttp }) |
63 | expect(bodyCaptions.total).to.equal(2) | 63 | expect(bodyCaptions.total).to.equal(2) |
64 | } | 64 | } |
65 | 65 | ||
@@ -76,7 +76,7 @@ describe('Test video imports', function () { | |||
76 | 76 | ||
77 | expect(video.files).to.have.lengthOf(1) | 77 | expect(video.files).to.have.lengthOf(1) |
78 | 78 | ||
79 | const bodyCaptions = await server.captions.listVideoCaptions({ videoId: id }) | 79 | const bodyCaptions = await server.captions.list({ videoId: id }) |
80 | expect(bodyCaptions.total).to.equal(2) | 80 | expect(bodyCaptions.total).to.equal(2) |
81 | } | 81 | } |
82 | 82 | ||
@@ -120,7 +120,7 @@ describe('Test video imports', function () { | |||
120 | await testImage(servers[0].url, 'video_import_thumbnail', video.thumbnailPath) | 120 | await testImage(servers[0].url, 'video_import_thumbnail', video.thumbnailPath) |
121 | await testImage(servers[0].url, 'video_import_preview', video.previewPath) | 121 | await testImage(servers[0].url, 'video_import_preview', video.previewPath) |
122 | 122 | ||
123 | const bodyCaptions = await servers[0].captions.listVideoCaptions({ videoId: video.id }) | 123 | const bodyCaptions = await servers[0].captions.list({ videoId: video.id }) |
124 | const videoCaptions = bodyCaptions.data | 124 | const videoCaptions = bodyCaptions.data |
125 | expect(videoCaptions).to.have.lengthOf(2) | 125 | expect(videoCaptions).to.have.lengthOf(2) |
126 | 126 | ||