diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-09 15:37:43 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 9293139fde7091e9badcafa9b570b83cea9a10ad (patch) | |
tree | 9728412f02af4aa59d2c016db47624251e8f6be6 /server/tests/api/videos/video-channels.ts | |
parent | 078f17e6d90376050f43ce639e88e11869b49ee7 (diff) | |
download | PeerTube-9293139fde7091e9badcafa9b570b83cea9a10ad.tar.gz PeerTube-9293139fde7091e9badcafa9b570b83cea9a10ad.tar.zst PeerTube-9293139fde7091e9badcafa9b570b83cea9a10ad.zip |
Introduce sql command
Diffstat (limited to 'server/tests/api/videos/video-channels.ts')
-rw-r--r-- | server/tests/api/videos/video-channels.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/tests/api/videos/video-channels.ts b/server/tests/api/videos/video-channels.ts index daf066eb1..e441ebbd4 100644 --- a/server/tests/api/videos/video-channels.ts +++ b/server/tests/api/videos/video-channels.ts | |||
@@ -9,7 +9,6 @@ import { | |||
9 | createUser, | 9 | createUser, |
10 | doubleFollow, | 10 | doubleFollow, |
11 | flushAndRunMultipleServers, | 11 | flushAndRunMultipleServers, |
12 | getActorImage, | ||
13 | getVideo, | 12 | getVideo, |
14 | getVideoChannelVideos, | 13 | getVideoChannelVideos, |
15 | setDefaultVideoChannel, | 14 | setDefaultVideoChannel, |
@@ -268,7 +267,7 @@ describe('Test video channels', function () { | |||
268 | await testImage(server.url, 'avatar-resized', avatarPaths[server.port], '.png') | 267 | await testImage(server.url, 'avatar-resized', avatarPaths[server.port], '.png') |
269 | await testFileExistsOrNot(server, 'avatars', basename(avatarPaths[server.port]), true) | 268 | await testFileExistsOrNot(server, 'avatars', basename(avatarPaths[server.port]), true) |
270 | 269 | ||
271 | const row = await getActorImage(server.internalServerNumber, basename(avatarPaths[server.port])) | 270 | const row = await server.sqlCommand.getActorImage(basename(avatarPaths[server.port])) |
272 | expect(row.height).to.equal(ACTOR_IMAGES_SIZE.AVATARS.height) | 271 | expect(row.height).to.equal(ACTOR_IMAGES_SIZE.AVATARS.height) |
273 | expect(row.width).to.equal(ACTOR_IMAGES_SIZE.AVATARS.width) | 272 | expect(row.width).to.equal(ACTOR_IMAGES_SIZE.AVATARS.width) |
274 | } | 273 | } |
@@ -294,7 +293,7 @@ describe('Test video channels', function () { | |||
294 | await testImage(server.url, 'banner-resized', bannerPaths[server.port]) | 293 | await testImage(server.url, 'banner-resized', bannerPaths[server.port]) |
295 | await testFileExistsOrNot(server, 'avatars', basename(bannerPaths[server.port]), true) | 294 | await testFileExistsOrNot(server, 'avatars', basename(bannerPaths[server.port]), true) |
296 | 295 | ||
297 | const row = await getActorImage(server.internalServerNumber, basename(bannerPaths[server.port])) | 296 | const row = await server.sqlCommand.getActorImage(basename(bannerPaths[server.port])) |
298 | expect(row.height).to.equal(ACTOR_IMAGES_SIZE.BANNERS.height) | 297 | expect(row.height).to.equal(ACTOR_IMAGES_SIZE.BANNERS.height) |
299 | expect(row.width).to.equal(ACTOR_IMAGES_SIZE.BANNERS.width) | 298 | expect(row.width).to.equal(ACTOR_IMAGES_SIZE.BANNERS.width) |
300 | } | 299 | } |