diff options
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 | ||