Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix build

Chocobozzz5b220f2a59bf
diff --git a/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.ts b/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.ts
index ee6303c46f..533b2fd7f8 100644
--- a/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.ts
+++ b/client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.ts
@@ -60,7 +60,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,
@Input() textValue?: string
@Output() commentCreated = new EventEmitter<VideoComment>()
- @Output() cancelEdition = new EventEmitter()
+ @Output() cancelEdit = new EventEmitter()
@ViewChild('visitorModal', { static: true }) visitorModal: NgbModal
@ViewChild('emojiModal', { static: true }) emojiModal: NgbModal
@@ -185,7 +185,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,
}
cancelCommentReply () {
- this.cancelEdition.emit(null)
+ this.cancelEdit.emit(null)
this.form.value['text'] = this.textareaElement.nativeElement.value = ''
}
diff --git a/packages/tests/src/api/videos/multiple-servers.ts b/packages/tests/src/api/videos/multiple-servers.ts
index bcb84301af..5676c9fd7f 100644
--- a/packages/tests/src/api/videos/multiple-servers.ts
+++ b/packages/tests/src/api/videos/multiple-servers.ts
@@ -9,6 +9,7 @@ import {
createMultipleServers,
followAll,
makeGetRequest,
+ makeRawRequest,
setAccessTokensToServers,
setDefaultAccountAvatar,
setDefaultChannelAvatar,
@@ -137,13 +138,10 @@ describe('Test multiple servers', function () {
expect(image.createdAt).to.exist
expect(image.updatedAt).to.exist
expect(image.width).to.be.above(20).and.below(2000)
+ expect(image.fileUrl).to.exist
expect(image.path).to.exist
- await makeGetRequest({
- url: server.url,
- path: image.fileUrl,
- expectedStatus: HttpStatusCode.OK_200
- })
+ await makeRawRequest({ url: image.fileUrl, expectedStatus: HttpStatusCode.OK_200 })
}
})
})
diff --git a/packages/tests/src/api/videos/video-captions.ts b/packages/tests/src/api/videos/video-captions.ts
index 1d47e807e3..e0ef93e3aa 100644
--- a/packages/tests/src/api/videos/video-captions.ts
+++ b/packages/tests/src/api/videos/video-captions.ts
@@ -1,6 +1,7 @@
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
import { wait } from '@peertube/peertube-core-utils'
+import { HttpStatusCode } from '@peertube/peertube-models'
import { areMockObjectStorageTestsDisabled } from '@peertube/peertube-node-utils'
import {
cleanupTests,
@@ -17,7 +18,6 @@ import { expectStartWith } from '@tests/shared/checks.js'
import { checkDirectoryIsEmpty } from '@tests/shared/directories.js'
import { checkVideoFilesWereRemoved } from '@tests/shared/videos.js'
import { expect } from 'chai'
-import { HttpStatusCode } from '../../../../models/src/http/http-status-codes.js'
describe('Test video captions', function () {
const uuidRegex = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
diff --git a/packages/tests/src/cli/peertube.ts b/packages/tests/src/cli/peertube.ts
index 94cd572749..aaa7c314fc 100644
--- a/packages/tests/src/cli/peertube.ts
+++ b/packages/tests/src/cli/peertube.ts
@@ -58,7 +58,7 @@ describe('Test CLI wrapper', function () {
it('Should display no selected instance', async function () {
this.timeout(60000)
- const stdout = await cliCommand.execWithEnv(`${cmd} --help`)
+ const { stdout } = await cliCommand.execWithEnv(`${cmd} --help`)
expect(stdout).to.contain('no instance selected')
})
@@ -82,14 +82,14 @@ describe('Test CLI wrapper', function () {
it('Should default to this user', async function () {
this.timeout(60000)
- const stdout = await cliCommand.execWithEnv(`${cmd} --help`)
+ const { stdout } = await cliCommand.execWithEnv(`${cmd} --help`)
expect(stdout).to.contain(`instance ${server.url} selected`)
})
it('Should remember the user', async function () {
this.timeout(60000)
- const stdout = await cliCommand.execWithEnv(`${cmd} auth list`)
+ const { stdout } = await cliCommand.execWithEnv(`${cmd} auth list`)
expect(stdout).to.contain(server.url)
})
})
@@ -121,7 +121,7 @@ describe('Test CLI wrapper', function () {
it('Should remove the auth user', async function () {
await cliCommand.execWithEnv(`${cmd} auth del ${server.url}`)
- const stdout = await cliCommand.execWithEnv(`${cmd} --help`)
+ const { stdout } = await cliCommand.execWithEnv(`${cmd} --help`)
expect(stdout).to.contain('no instance selected')
})
@@ -143,15 +143,15 @@ describe('Test CLI wrapper', function () {
})
it('Should list installed plugins', async function () {
- const res = await cliCommand.execWithEnv(`${cmd} plugins list`)
+ const { stdout } = await cliCommand.execWithEnv(`${cmd} plugins list`)
- expect(res).to.contain('peertube-plugin-hello-world')
+ expect(stdout).to.contain('peertube-plugin-hello-world')
})
it('Should uninstall the plugin', async function () {
- const res = await cliCommand.execWithEnv(`${cmd} plugins uninstall --npm-name peertube-plugin-hello-world`)
+ const { stdout } = await cliCommand.execWithEnv(`${cmd} plugins uninstall --npm-name peertube-plugin-hello-world`)
- expect(res).to.not.contain('peertube-plugin-hello-world')
+ expect(stdout).to.not.contain('peertube-plugin-hello-world')
})
it('Should install a plugin in requested version', async function () {
@@ -161,16 +161,16 @@ describe('Test CLI wrapper', function () {
})
it('Should list installed plugins, in correct version', async function () {
- const res = await cliCommand.execWithEnv(`${cmd} plugins list`)
+ const { stdout } = await cliCommand.execWithEnv(`${cmd} plugins list`)
- expect(res).to.contain('peertube-plugin-hello-world')
- expect(res).to.contain('0.0.17')
+ expect(stdout).to.contain('peertube-plugin-hello-world')
+ expect(stdout).to.contain('0.0.17')
})
it('Should uninstall the plugin again', async function () {
- const res = await cliCommand.execWithEnv(`${cmd} plugins uninstall --npm-name peertube-plugin-hello-world`)
+ const { stdout } = await cliCommand.execWithEnv(`${cmd} plugins uninstall --npm-name peertube-plugin-hello-world`)
- expect(res).to.not.contain('peertube-plugin-hello-world')
+ expect(stdout).to.not.contain('peertube-plugin-hello-world')
})
it('Should install a plugin in requested beta version', async function () {
@@ -178,10 +178,10 @@ describe('Test CLI wrapper', function () {
await cliCommand.execWithEnv(`${cmd} plugins install --npm-name peertube-plugin-hello-world --plugin-version 0.0.21-beta.1`)
- const res = await cliCommand.execWithEnv(`${cmd} plugins list`)
+ const { stdout } = await cliCommand.execWithEnv(`${cmd} plugins list`)
- expect(res).to.contain('peertube-plugin-hello-world')
- expect(res).to.contain('0.0.21-beta.1')
+ expect(stdout).to.contain('peertube-plugin-hello-world')
+ expect(stdout).to.contain('0.0.21-beta.1')
await cliCommand.execWithEnv(`${cmd} plugins uninstall --npm-name peertube-plugin-hello-world`)
})
@@ -223,7 +223,7 @@ describe('Test CLI wrapper', function () {
{
const params = 'list-my-redundancies'
- const stdout = await cliCommand.execWithEnv(`${cmd} redundancy ${params}`)
+ const { stdout } = await cliCommand.execWithEnv(`${cmd} redundancy ${params}`)
expect(stdout).to.contain('super video')
expect(stdout).to.contain(server.host)
@@ -240,7 +240,7 @@ describe('Test CLI wrapper', function () {
{
const params = 'list-my-redundancies'
- const stdout = await cliCommand.execWithEnv(`${cmd} redundancy ${params}`)
+ const { stdout } = await cliCommand.execWithEnv(`${cmd} redundancy ${params}`)
expect(stdout).to.not.contain('super video')
}
diff --git a/packages/tests/src/shared/captions.ts b/packages/tests/src/shared/captions.ts
index 131c846d02..d382f8ea43 100644
--- a/packages/tests/src/shared/captions.ts
+++ b/packages/tests/src/shared/captions.ts
@@ -1,6 +1,6 @@
import { HttpStatusCode } from '@peertube/peertube-models'
+import { makeRawRequest } from '@peertube/peertube-server-commands'
import { expect } from 'chai'
-import { makeRawRequest } from '../../../server-commands/src/requests/requests.js'
export async function testCaptionFile (fileUrl: string, toTest: RegExp | string) {
const res = await makeRawRequest({ url: fileUrl, expectedStatus: HttpStatusCode.OK_200 })