From bdd428a6d9138d751f8cde82867022a93f1a76cc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 28 Feb 2020 16:03:39 +0100 Subject: Update dependencies --- server/tests/api/notifications/user-notifications.ts | 2 +- server/tests/api/server/tracker.ts | 6 +++--- server/tests/cli/prune-storage.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'server/tests') diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts index 2a632e16f..625e344fa 100644 --- a/server/tests/api/notifications/user-notifications.ts +++ b/server/tests/api/notifications/user-notifications.ts @@ -63,7 +63,7 @@ import { addUserSubscription, removeUserSubscription } from '../../../../shared/ import { VideoPrivacy } from '../../../../shared/models/videos' import { getBadVideoUrl, getYoutubeVideoUrl, importVideo } from '../../../../shared/extra-utils/videos/video-imports' import { addVideoCommentReply, addVideoCommentThread } from '../../../../shared/extra-utils/videos/video-comments' -import * as uuidv4 from 'uuid/v4' +import { v4 as uuidv4 } from 'uuid' import { addAccountToAccountBlocklist, removeAccountFromAccountBlocklist } from '../../../../shared/extra-utils/users/blocklist' import { CustomConfig } from '../../../../shared/models/server' import { VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model' diff --git a/server/tests/api/server/tracker.ts b/server/tests/api/server/tracker.ts index 9d3a274d4..611d5254a 100644 --- a/server/tests/api/server/tracker.ts +++ b/server/tests/api/server/tracker.ts @@ -49,7 +49,7 @@ describe('Test tracker', function () { torrent.on('error', done) torrent.on('warning', warn => { const message = typeof warn === 'string' ? warn : warn.message - if (message.indexOf('Unknown infoHash ') !== -1) return done() + if (message.includes('Unknown infoHash ')) return done() }) torrent.on('done', () => done(new Error('No error on infohash'))) @@ -64,7 +64,7 @@ describe('Test tracker', function () { torrent.on('error', done) torrent.on('warning', warn => { const message = typeof warn === 'string' ? warn : warn.message - if (message.indexOf('Unknown infoHash ') !== -1) return done(new Error('Error on infohash')) + if (message.includes('Unknown infoHash ')) return done(new Error('Error on infohash')) }) torrent.on('done', done) @@ -83,7 +83,7 @@ describe('Test tracker', function () { torrent.on('error', done) torrent.on('warning', warn => { const message = typeof warn === 'string' ? warn : warn.message - if (message.indexOf('disabled ') !== -1) return done() + if (message.includes('disabled ')) return done() }) torrent.on('done', () => done(new Error('Tracker is enabled'))) diff --git a/server/tests/cli/prune-storage.ts b/server/tests/cli/prune-storage.ts index 304c8ca56..6cda80070 100644 --- a/server/tests/cli/prune-storage.ts +++ b/server/tests/cli/prune-storage.ts @@ -22,7 +22,7 @@ import { } from '../../../shared/extra-utils' import { Account, VideoPlaylistPrivacy } from '../../../shared/models' import { createFile, readdir } from 'fs-extra' -import * as uuidv4 from 'uuid/v4' +import { v4 as uuidv4 } from 'uuid' import { join } from 'path' const expect = chai.expect -- cgit v1.2.3