From b7f1bc0c33390c84840d8377d4bbe148625a818f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 20 Oct 2023 17:30:46 +0200 Subject: [PATCH] Fix misc endpoints tests --- packages/tests/src/misc-endpoints.ts | 8 ++++---- scripts/ci.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/tests/src/misc-endpoints.ts b/packages/tests/src/misc-endpoints.ts index 3ae0c7b17..eab3bdde5 100644 --- a/packages/tests/src/misc-endpoints.ts +++ b/packages/tests/src/misc-endpoints.ts @@ -212,11 +212,11 @@ describe('Test misc endpoints', function () { expect(res.text).to.contain('video 2') expect(res.text).to.not.contain('video 3') - expect(res.text).to.contain('' + server.url + '/video-channels/channel1') - expect(res.text).to.contain('' + server.url + '/video-channels/channel2') + expect(res.text).to.contain('' + server.url + '/c/channel1') + expect(res.text).to.contain('' + server.url + '/c/channel2') - expect(res.text).to.contain('' + server.url + '/accounts/user1') - expect(res.text).to.contain('' + server.url + '/accounts/user2') + expect(res.text).to.contain('' + server.url + '/a/user1') + expect(res.text).to.contain('' + server.url + '/a/user2') }) it('Should not fail with big title/description videos', async function () { diff --git a/scripts/ci.sh b/scripts/ci.sh index e24289345..9544daf91 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -59,7 +59,7 @@ elif [ "$1" = "client" ]; then feedsFiles=$(findTestFiles ./packages/tests/dist/feeds) clientFiles=$(findTestFiles ./packages/tests/dist/client) - miscFiles="./packages/tests/dist/client.js ./packages/tests/dist/misc-endpoints.js" + miscFiles="./packages/tests/dist/misc-endpoints.js" # Not in their own task, they need an index.html pluginFiles="./packages/tests/dist/plugins/html-injection.js ./packages/tests/dist/api/server/plugins.js"