From 2b9f672b58bc2c13c96ee79f522003979e4bfc02 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 21 Jul 2021 15:44:28 +0200 Subject: Improve plugin constant tests --- .../fixtures/peertube-plugin-test-video-constants/main.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'server/tests/fixtures/peertube-plugin-test-video-constants') diff --git a/server/tests/fixtures/peertube-plugin-test-video-constants/main.js b/server/tests/fixtures/peertube-plugin-test-video-constants/main.js index f44704a44..06527bd35 100644 --- a/server/tests/fixtures/peertube-plugin-test-video-constants/main.js +++ b/server/tests/fixtures/peertube-plugin-test-video-constants/main.js @@ -7,24 +7,26 @@ async function register ({ getRouter }) { videoLanguageManager.addConstant('al_bhed', 'Al Bhed') - videoLanguageManager.addConstant('al_bhed2', 'Al Bhed 2') + videoLanguageManager.addLanguage('al_bhed2', 'Al Bhed 2') videoLanguageManager.addConstant('al_bhed3', 'Al Bhed 3') videoLanguageManager.deleteConstant('en') - videoLanguageManager.deleteConstant('fr') + videoLanguageManager.deleteLanguage('fr') videoLanguageManager.deleteConstant('al_bhed3') - videoCategoryManager.addConstant(42, 'Best category') + videoCategoryManager.addCategory(42, 'Best category') videoCategoryManager.addConstant(43, 'High best category') videoCategoryManager.deleteConstant(1) // Music - videoCategoryManager.deleteConstant(2) // Films + videoCategoryManager.deleteCategory(2) // Films - videoLicenceManager.addConstant(42, 'Best licence') + videoLicenceManager.addLicence(42, 'Best licence') videoLicenceManager.addConstant(43, 'High best licence') videoLicenceManager.deleteConstant(1) // Attribution videoLicenceManager.deleteConstant(7) // Public domain videoPrivacyManager.deleteConstant(2) + videoPrivacyManager.deletePrivacy(2) playlistPrivacyManager.deleteConstant(3) + playlistPrivacyManager.deletePlaylistPrivacy(3) { const router = getRouter() -- cgit v1.2.3