diff --git a/__tests__/unit/database/services/channel.test.ts b/__tests__/unit/database/services/channel.test.ts index 493f21c1..76a74a45 100644 --- a/__tests__/unit/database/services/channel.test.ts +++ b/__tests__/unit/database/services/channel.test.ts @@ -10,7 +10,7 @@ describe('channel service', () => { describe('createChannel', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should create a channel', async () => { @@ -32,7 +32,7 @@ describe('channel service', () => { describe('createChannels', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should create channels', async () => { @@ -61,7 +61,7 @@ describe('channel service', () => { describe('getChannel', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should retrieve an existing channel that match the filter criteria', async () => { @@ -83,7 +83,7 @@ describe('channel service', () => { describe('getChannels', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should retrieve channels that match the filter criteria', async () => { @@ -106,7 +106,7 @@ describe('channel service', () => { describe('updateChannel', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); const updateBody: IChannelUpdateBody = { @@ -136,7 +136,7 @@ describe('channel service', () => { describe('updateChannels', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); const updateBody: IChannelUpdateBody = { diff --git a/__tests__/unit/database/services/guildMember.test.ts b/__tests__/unit/database/services/guildMember.test.ts index 66971b9d..96a837b0 100644 --- a/__tests__/unit/database/services/guildMember.test.ts +++ b/__tests__/unit/database/services/guildMember.test.ts @@ -10,7 +10,7 @@ describe('guildMember service', () => { describe('createGuidMember', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should create a guild member', async () => { @@ -33,7 +33,7 @@ describe('guildMember service', () => { describe('createGuidMembers', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should create guild members', async () => { @@ -64,7 +64,7 @@ describe('guildMember service', () => { describe('getGuildMember', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should retrieve an existing guild member that match the filter criteria', async () => { @@ -86,7 +86,7 @@ describe('guildMember service', () => { describe('getGuildMembers', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should retrieve guild members that match the filter criteria', async () => { @@ -110,7 +110,7 @@ describe('guildMember service', () => { describe('updateGuildMember', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); const updateBody: IGuildMemberUpdateBody = { @@ -155,7 +155,7 @@ describe('guildMember service', () => { describe('updateGuildMembers', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); const updateBody: IGuildMemberUpdateBody = { @@ -184,7 +184,7 @@ describe('guildMember service', () => { describe('deleteGuildMember', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should delete guild member that match the filter criteria', async () => { @@ -206,7 +206,7 @@ describe('guildMember service', () => { describe('deleteGuildMembers', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should delete guild members that match the filter criteria', async () => { diff --git a/__tests__/unit/database/services/rawInfo.test.ts b/__tests__/unit/database/services/rawInfo.test.ts index 04903670..a0d0a2bc 100644 --- a/__tests__/unit/database/services/rawInfo.test.ts +++ b/__tests__/unit/database/services/rawInfo.test.ts @@ -10,7 +10,7 @@ describe('rawInfo service', () => { describe('createRawInfo', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should create a rawInfo', async () => { @@ -33,7 +33,7 @@ describe('rawInfo service', () => { describe('createRawInfos', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should create rawInfos (list of rawInfo)', async () => { @@ -69,7 +69,7 @@ describe('rawInfo service', () => { describe('getRawInfo', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should retrieve an existing rawInfo that matches the filter criteria', async () => { @@ -92,7 +92,7 @@ describe('rawInfo service', () => { describe('getRawInfos', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should retrieve rawInfo that matches the filter criteria', async () => { @@ -116,7 +116,7 @@ describe('rawInfo service', () => { describe('updateRawInfo', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); const updateBody: IRawInfoUpdateBody = { @@ -151,7 +151,7 @@ describe('rawInfo service', () => { describe('updateRawInfos', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); const updateBody: IRawInfoUpdateBody = { @@ -190,7 +190,7 @@ describe('rawInfo service', () => { describe('deleteRawInfo', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should delete rawInfo that matches the filter criteria', async () => { @@ -212,7 +212,7 @@ describe('rawInfo service', () => { describe('deleteRawInfos', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should delete rawInfo that matches the filter criteria', async () => { diff --git a/__tests__/unit/database/services/role.test.ts b/__tests__/unit/database/services/role.test.ts index b5d66674..999bb0e5 100644 --- a/__tests__/unit/database/services/role.test.ts +++ b/__tests__/unit/database/services/role.test.ts @@ -10,7 +10,7 @@ describe('role service', () => { describe('createRole', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should create a role', async () => { @@ -32,7 +32,7 @@ describe('role service', () => { describe('createRoles', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should create roles', async () => { @@ -61,7 +61,7 @@ describe('role service', () => { describe('getRole', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should retrieve an existing role that match the filter criteria', async () => { @@ -83,7 +83,7 @@ describe('role service', () => { describe('getRoles', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); test('should retrieve roles that match the filter criteria', async () => { @@ -106,7 +106,7 @@ describe('role service', () => { describe('updateRole', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); const updateBody: IRoleUpdateBody = { @@ -136,7 +136,7 @@ describe('role service', () => { describe('updateRoles', () => { let connection: Connection; beforeEach(async () => { - connection = await DatabaseManager.getInstance().getTenantDb('connection'); + connection = await DatabaseManager.getInstance().getTenantDb('connection-1'); await connection.dropDatabase(); }); const updateBody: IRoleUpdateBody = {