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/helpers/comment-model.ts | 4 +--- server/tests/helpers/core-utils.ts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'server/tests/helpers') diff --git a/server/tests/helpers/comment-model.ts b/server/tests/helpers/comment-model.ts index e1c563dee..e39cae442 100644 --- a/server/tests/helpers/comment-model.ts +++ b/server/tests/helpers/comment-model.ts @@ -1,10 +1,8 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { VideoCommentModel } from '../../models/video/video-comment' -const expect = chai.expect - class CommentMock { text: string diff --git a/server/tests/helpers/core-utils.ts b/server/tests/helpers/core-utils.ts index 4f059d982..de6ba4f82 100644 --- a/server/tests/helpers/core-utils.ts +++ b/server/tests/helpers/core-utils.ts @@ -1,14 +1,12 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { snakeCase } from 'lodash' import validator from 'validator' import { getAverageBitrate, getMaxBitrate } from '@shared/core-utils' import { VideoResolution } from '@shared/models' import { objectConverter, parseBytes, parseDurationToMs } from '../../helpers/core-utils' -const expect = chai.expect - describe('Parse Bytes', function () { it('Should pass on valid value', async function () { -- cgit v1.2.3