From c106db14136f1701a8b1eab8d7152395225e55e4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 10 May 2023 16:23:55 +0200 Subject: Fix tests --- server/tests/api/activitypub/security.ts | 2 +- server/tests/api/object-storage/videos.ts | 2 +- server/tests/api/server/handle-down.ts | 2 +- server/tests/api/videos/video-channel-syncs.ts | 2 +- server/tests/api/videos/video-channels.ts | 2 +- server/tests/api/views/videos-views-cleaner.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'server') diff --git a/server/tests/api/activitypub/security.ts b/server/tests/api/activitypub/security.ts index d6a07b87f..6cf504f6f 100644 --- a/server/tests/api/activitypub/security.ts +++ b/server/tests/api/activitypub/security.ts @@ -71,7 +71,7 @@ async function makeFollowRequest (to: { url: string }, by: { url: string, privat describe('Test ActivityPub security', function () { let servers: PeerTubeServer[] - let sqlCommands: SQLCommand[] + let sqlCommands: SQLCommand[] = [] let url: string diff --git a/server/tests/api/object-storage/videos.ts b/server/tests/api/object-storage/videos.ts index fe0720294..77bb00678 100644 --- a/server/tests/api/object-storage/videos.ts +++ b/server/tests/api/object-storage/videos.ts @@ -144,7 +144,7 @@ function runTestSuite (options: { let baseMockUrl: string let servers: PeerTubeServer[] - let sqlCommands: SQLCommand[] + let sqlCommands: SQLCommand[] = [] let keptUrls: string[] = [] diff --git a/server/tests/api/server/handle-down.ts b/server/tests/api/server/handle-down.ts index 0bbd9ef47..3a73ab1d2 100644 --- a/server/tests/api/server/handle-down.ts +++ b/server/tests/api/server/handle-down.ts @@ -16,7 +16,7 @@ import { describe('Test handle downs', function () { let servers: PeerTubeServer[] = [] - let sqlCommands: SQLCommand[] + let sqlCommands: SQLCommand[] = [] let threadIdServer1: number let threadIdServer2: number diff --git a/server/tests/api/videos/video-channel-syncs.ts b/server/tests/api/videos/video-channel-syncs.ts index 12c2c158e..7f688c7d6 100644 --- a/server/tests/api/videos/video-channel-syncs.ts +++ b/server/tests/api/videos/video-channel-syncs.ts @@ -23,7 +23,7 @@ describe('Test channel synchronizations', function () { describe('Sync using ' + mode, function () { let servers: PeerTubeServer[] - let sqlCommands: SQLCommand[] + let sqlCommands: SQLCommand[] = [] let startTestDate: Date diff --git a/server/tests/api/videos/video-channels.ts b/server/tests/api/videos/video-channels.ts index c82ad6f16..8e2b7937c 100644 --- a/server/tests/api/videos/video-channels.ts +++ b/server/tests/api/videos/video-channels.ts @@ -25,7 +25,7 @@ async function findChannel (server: PeerTubeServer, channelId: number) { describe('Test video channels', function () { let servers: PeerTubeServer[] - let sqlCommands: SQLCommand[] + let sqlCommands: SQLCommand[] = [] let userInfo: User let secondVideoChannelId: number diff --git a/server/tests/api/views/videos-views-cleaner.ts b/server/tests/api/views/videos-views-cleaner.ts index fce2d538c..a84cd43c7 100644 --- a/server/tests/api/views/videos-views-cleaner.ts +++ b/server/tests/api/views/videos-views-cleaner.ts @@ -15,7 +15,7 @@ import { describe('Test video views cleaner', function () { let servers: PeerTubeServer[] - let sqlCommands: SQLCommand[] + let sqlCommands: SQLCommand[] = [] let videoIdServer1: string let videoIdServer2: string -- cgit v1.2.3