From 281b07576a9c97ab9982a4465a4ba1ff02a83a81 Mon Sep 17 00:00:00 2001
From: Benedikt Magnus <magnus@magnuscraft.de>
Date: Wed, 10 Nov 2021 11:54:40 +0100
Subject: [PATCH] Fixed imports in tests.

---
 tests/performance/database.ts                              | 2 +-
 tests/tests/messages/statefulCommands.ts                   | 2 +-
 tests/tests/messages/statelessCommands.ts                  | 2 +-
 tests/tests/wichtelbot.database.ts                         | 2 +-
 tests/tests/wichtelbot.endpoint.implementations.discord.ts | 1 -
 tests/tests/wichtelbot.message.handler.ts                  | 2 +-
 tests/utility/message.ts                                   | 3 +--
 7 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/tests/performance/database.ts b/tests/performance/database.ts
index 97cb95c..a048e9a 100644
--- a/tests/performance/database.ts
+++ b/tests/performance/database.ts
@@ -3,7 +3,7 @@ import * as fs from 'fs';
 
 import Contact from '../../scripts/wichtelbot/classes/contact';
 import ContactTestUtility from '../utility/contact';
-import Database from '../../scripts/wichtelbot/database';
+import Database from '../../scripts/wichtelbot/database/database';
 import Member from '../../scripts/wichtelbot/classes/member';
 
 const testCount = 100;
diff --git a/tests/tests/messages/statefulCommands.ts b/tests/tests/messages/statefulCommands.ts
index 1d3faa7..7acfb45 100644
--- a/tests/tests/messages/statefulCommands.ts
+++ b/tests/tests/messages/statefulCommands.ts
@@ -6,7 +6,7 @@ import Config from '../../../scripts/utility/config';
 import ConfigTestUtility from '../../utility/config';
 import Contact from '../../../scripts/wichtelbot/classes/contact';
 import ContactType from '../../../scripts/wichtelbot/types/contactType';
-import Database from '../../../scripts/wichtelbot/database';
+import Database from '../../../scripts/wichtelbot/database/database';
 import GiftType from '../../../scripts/wichtelbot/types/giftType';
 import Information from '../../../scripts/wichtelbot/classes/information';
 import { KeyValuePairList } from '../../../scripts/utility/keyValuePair';
diff --git a/tests/tests/messages/statelessCommands.ts b/tests/tests/messages/statelessCommands.ts
index 526949e..a3f6fd2 100644
--- a/tests/tests/messages/statelessCommands.ts
+++ b/tests/tests/messages/statelessCommands.ts
@@ -3,7 +3,7 @@ import { assert } from 'chai';
 import { ChannelType } from '../../../scripts/wichtelbot/endpoint/definitions';
 import Config from '../../../scripts/utility/config';
 import ConfigTestUtility from '../../utility/config';
-import Database from '../../../scripts/wichtelbot/database';
+import Database from '../../../scripts/wichtelbot/database/database';
 import Localisation from '../../../scripts/utility/localisation';
 import MessageHandler from '../../../scripts/wichtelbot/message/messageHandler';
 import { TestMessageWithFixedAuthor } from '../../utility/message';
diff --git a/tests/tests/wichtelbot.database.ts b/tests/tests/wichtelbot.database.ts
index e4f83bd..e813f36 100644
--- a/tests/tests/wichtelbot.database.ts
+++ b/tests/tests/wichtelbot.database.ts
@@ -2,7 +2,7 @@ import 'mocha';
 import { assert } from 'chai';
 
 import ContactTestUtility from '../utility/contact';
-import Database from '../../scripts/wichtelbot/database';
+import Database from '../../scripts/wichtelbot/database/database';
 import GeneralTestUtility from '../utility/general';
 import Member from '../../scripts/wichtelbot/classes/member';
 
diff --git a/tests/tests/wichtelbot.endpoint.implementations.discord.ts b/tests/tests/wichtelbot.endpoint.implementations.discord.ts
index dff1404..220e61d 100644
--- a/tests/tests/wichtelbot.endpoint.implementations.discord.ts
+++ b/tests/tests/wichtelbot.endpoint.implementations.discord.ts
@@ -4,7 +4,6 @@ import * as DiscordEndpoint from '../../scripts/wichtelbot/endpoint/implementati
 import * as mockito from 'ts-mockito';
 import { assert } from 'chai';
 import { ChannelType } from '../../scripts/wichtelbot/endpoint/definitions';
-import GeneralTestUtility from '../utility/general';
 
 describe('discord client',
     function ()
diff --git a/tests/tests/wichtelbot.message.handler.ts b/tests/tests/wichtelbot.message.handler.ts
index b68a58e..06f02a8 100644
--- a/tests/tests/wichtelbot.message.handler.ts
+++ b/tests/tests/wichtelbot.message.handler.ts
@@ -4,7 +4,7 @@ import { TestMessage, TestMessageWithFixedAuthor } from '../utility/message';
 import { assert } from 'chai';
 import Config from '../../scripts/utility/config';
 import ConfigTestUtility from '../utility/config';
-import Database from '../../scripts/wichtelbot/database';
+import Database from '../../scripts/wichtelbot/database/database';
 import { KeyValuePairList } from '../../scripts/utility/keyValuePair';
 import Localisation from '../../scripts/utility/localisation';
 import MessageHandler from '../../scripts/wichtelbot/message/messageHandler';
diff --git a/tests/utility/message.ts b/tests/utility/message.ts
index 604e8e8..38cec78 100644
--- a/tests/utility/message.ts
+++ b/tests/utility/message.ts
@@ -1,7 +1,6 @@
-
 import { Channel, ChannelType, Client, Component, Message, State, User } from '../../scripts/wichtelbot/endpoint/definitions';
 import Contact from '../../scripts/wichtelbot/classes/contact';
-import Database from '../../scripts/wichtelbot/database';
+import Database from '../../scripts/wichtelbot/database/database';
 import GeneralTestUtility from '../utility/general';
 import Information from '../../scripts/wichtelbot/classes/information';
 import Member from '../../scripts/wichtelbot/classes/member';
-- 
GitLab