From a99ee05e491cf76f77960fdd4a3744565abe32a7 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Thu, 15 Jun 2023 13:57:29 +0200 Subject: [PATCH] converted two more js files to ts --- backend/test/features/support/{steps.js => steps.ts} | 2 +- backend/test/features/{world.js => world.ts} | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) rename backend/test/features/support/{steps.js => steps.ts} (99%) rename backend/test/features/{world.js => world.ts} (94%) diff --git a/backend/test/features/support/steps.js b/backend/test/features/support/steps.ts similarity index 99% rename from backend/test/features/support/steps.js rename to backend/test/features/support/steps.ts index e15801f83..c62b286cd 100644 --- a/backend/test/features/support/steps.js +++ b/backend/test/features/support/steps.ts @@ -5,7 +5,7 @@ import { expect } from 'chai' import { GraphQLClient } from 'graphql-request' import Factory from '../../../src/db/factories' const debug = require('debug')('ea:test:steps') - +const host: any = null const client = new GraphQLClient(host) function createUser (slug) { diff --git a/backend/test/features/world.js b/backend/test/features/world.ts similarity index 94% rename from backend/test/features/world.js rename to backend/test/features/world.ts index be436b536..72e120dc7 100644 --- a/backend/test/features/world.js +++ b/backend/test/features/world.ts @@ -4,6 +4,11 @@ import request from 'request' const debug = require('debug')('ea:test:world') class CustomWorld { + lastResponses: any + lastContentType: any + lastInboxUrl: any + lastActivity: any + statusCode: any constructor () { // webFinger.feature this.lastResponses = []