Skip to content

Commit

Permalink
Fix misc endpoints tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Oct 20, 2023
1 parent 521face commit b7f1bc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/tests/src/misc-endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ describe('Test misc endpoints', function () {
expect(res.text).to.contain('<video:title>video 2</video:title>')
expect(res.text).to.not.contain('<video:title>video 3</video:title>')

expect(res.text).to.contain('<url><loc>' + server.url + '/video-channels/channel1</loc></url>')
expect(res.text).to.contain('<url><loc>' + server.url + '/video-channels/channel2</loc></url>')
expect(res.text).to.contain('<url><loc>' + server.url + '/c/channel1</loc></url>')
expect(res.text).to.contain('<url><loc>' + server.url + '/c/channel2</loc></url>')

expect(res.text).to.contain('<url><loc>' + server.url + '/accounts/user1</loc></url>')
expect(res.text).to.contain('<url><loc>' + server.url + '/accounts/user2</loc></url>')
expect(res.text).to.contain('<url><loc>' + server.url + '/a/user1</loc></url>')
expect(res.text).to.contain('<url><loc>' + server.url + '/a/user2</loc></url>')
})

it('Should not fail with big title/description videos', async function () {
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit b7f1bc0

Please sign in to comment.