mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-21 02:35:23 -04:00
test: import EventEmitterModule
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
865c70b942
commit
7798a77f6d
8 changed files with 24 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import { ConfigModule } from '@nestjs/config';
|
||||
import { EventEmitterModule } from '@nestjs/event-emitter';
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { getRepositoryToken } from '@nestjs/typeorm';
|
||||
import { IncomingMessage } from 'http';
|
||||
|
@ -17,6 +18,7 @@ import appConfigMock from '../../config/mock/app.config.mock';
|
|||
import authConfigMock from '../../config/mock/auth.config.mock';
|
||||
import databaseConfigMock from '../../config/mock/database.config.mock';
|
||||
import noteConfigMock from '../../config/mock/note.config.mock';
|
||||
import { eventModuleConfig } from '../../events';
|
||||
import { Group } from '../../groups/group.entity';
|
||||
import { Identity } from '../../identity/identity.entity';
|
||||
import { LoggerModule } from '../../logger/logger.module';
|
||||
|
@ -110,6 +112,7 @@ describe('Websocket gateway', () => {
|
|||
noteConfigMock,
|
||||
],
|
||||
}),
|
||||
EventEmitterModule.forRoot(eventModuleConfig),
|
||||
],
|
||||
})
|
||||
.overrideProvider(getRepositoryToken(User))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue