From a15871560f80e07386c1dabb8370cd2664ecfd1f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 31 Jan 2020 16:56:52 +0100 Subject: Move to eslint --- server/tests/api/activitypub/security.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'server/tests/api/activitypub/security.ts') 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}`) } } -- cgit v1.2.3