From 863477173efa82a4412d2e522aa46462249f9199 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 17 Aug 2022 15:44:32 +0200 Subject: Cleanup tests imports --- server/tests/api/redundancy/manage-redundancy.ts | 4 +--- server/tests/api/redundancy/redundancy.ts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'server/tests/api/redundancy') diff --git a/server/tests/api/redundancy/manage-redundancy.ts b/server/tests/api/redundancy/manage-redundancy.ts index b607900f8..404b65a99 100644 --- a/server/tests/api/redundancy/manage-redundancy.ts +++ b/server/tests/api/redundancy/manage-redundancy.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { cleanupTests, createMultipleServers, @@ -12,8 +12,6 @@ import { } from '@shared/server-commands' import { VideoPrivacy, VideoRedundanciesTarget } from '@shared/models' -const expect = chai.expect - describe('Test manage videos redundancy', function () { const targets: VideoRedundanciesTarget[] = [ 'my-videos', 'remote-videos' ] diff --git a/server/tests/api/redundancy/redundancy.ts b/server/tests/api/redundancy/redundancy.ts index cc150e02e..5abed358f 100644 --- a/server/tests/api/redundancy/redundancy.ts +++ b/server/tests/api/redundancy/redundancy.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { readdir } from 'fs-extra' import magnetUtil from 'magnet-uri' import { basename, join } from 'path' @@ -25,8 +25,6 @@ import { waitJobs } from '@shared/server-commands' -const expect = chai.expect - let servers: PeerTubeServer[] = [] let video1Server2: VideoDetails -- cgit v1.2.3