aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-01-19 14:09:57 +0100
committerChocobozzz <me@florianbigard.com>2023-01-19 14:09:57 +0100
commit32fde390f465b9ceef9e49c4037acdacbe176d65 (patch)
treebd0f28ac72d0e920387da7d4e68cf73bba736bbc /server/tests/shared
parent1f6dd0084485e10623aeb222f1429edf30e5f823 (diff)
downloadPeerTube-32fde390f465b9ceef9e49c4037acdacbe176d65.tar.gz
PeerTube-32fde390f465b9ceef9e49c4037acdacbe176d65.tar.zst
PeerTube-32fde390f465b9ceef9e49c4037acdacbe176d65.zip
Use unknown when category is not set
Unstead of Misc, that could be a real category
Diffstat (limited to 'server/tests/shared')
-rw-r--r--server/tests/shared/videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/shared/videos.ts b/server/tests/shared/videos.ts
index c8339584b..f8ec65752 100644
--- a/server/tests/shared/videos.ts
+++ b/server/tests/shared/videos.ts
@@ -59,7 +59,7 @@ async function completeVideoCheck (
59 59
60 expect(video.name).to.equal(attributes.name) 60 expect(video.name).to.equal(attributes.name)
61 expect(video.category.id).to.equal(attributes.category) 61 expect(video.category.id).to.equal(attributes.category)
62 expect(video.category.label).to.equal(attributes.category !== null ? VIDEO_CATEGORIES[attributes.category] : 'Misc') 62 expect(video.category.label).to.equal(attributes.category !== null ? VIDEO_CATEGORIES[attributes.category] : 'Unknown')
63 expect(video.licence.id).to.equal(attributes.licence) 63 expect(video.licence.id).to.equal(attributes.licence)
64 expect(video.licence.label).to.equal(attributes.licence !== null ? VIDEO_LICENCES[attributes.licence] : 'Unknown') 64 expect(video.licence.label).to.equal(attributes.licence !== null ? VIDEO_LICENCES[attributes.licence] : 'Unknown')
65 expect(video.language.id).to.equal(attributes.language) 65 expect(video.language.id).to.equal(attributes.language)