X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Factivitypub%2Fsecurity.ts;h=7e58bf0652fe834cd951d4a6000c175be6ba22de;hb=7024e9120b381b5b3201212f5a18f5cdc14e15ff;hp=dc960c5c3452f21e6cf3cc3875f44c6b6f2b852a;hpb=79ad1706f3cf009e04db9cd9e6a721801d93e64e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/activitypub/security.ts b/server/tests/api/activitypub/security.ts index dc960c5c3..7e58bf065 100644 --- a/server/tests/api/activitypub/security.ts +++ b/server/tests/api/activitypub/security.ts @@ -1,15 +1,8 @@ -/* tslint:disable:no-unused-expression */ +/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import 'mocha' -import { - cleanupTests, - closeAllSequelize, - flushAndRunMultipleServers, - killallServers, - ServerInfo, - setActorField -} from '../../../../shared/extra-utils' +import { cleanupTests, closeAllSequelize, flushAndRunMultipleServers, ServerInfo, setActorField } from '../../../../shared/extra-utils' import { HTTP_SIGNATURE } from '../../../initializers/constants' import { buildDigest, buildGlobalHeaders } from '../../../lib/job-queue/handlers/utils/activitypub-http-utils' import * as chai from 'chai' @@ -33,7 +26,7 @@ function getAnnounceWithoutContext (server2: ServerInfo) { if (Array.isArray(json[key])) { result[key] = json[key].map(v => v.replace(':9002', `:${server2.port}`)) } else { - result[ key ] = json[ key ].replace(':9002', `:${server2.port}`) + result[key] = json[key].replace(':9002', `:${server2.port}`) } }