mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-03 16:38:50 -04:00
Adjust tests to new Session and Author entities
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
3d07c5e443
commit
f6d430c23f
15 changed files with 91 additions and 1 deletions
|
@ -5,6 +5,8 @@
|
|||
*/
|
||||
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { Author } from '../../../../authors/author.entity';
|
||||
import { Session } from '../../../../users/session.entity';
|
||||
import { HistoryController } from './history.controller';
|
||||
import { LoggerModule } from '../../../../logger/logger.module';
|
||||
import { UsersModule } from '../../../../users/users.module';
|
||||
|
@ -71,6 +73,10 @@ describe('HistoryController', () => {
|
|||
.useValue({})
|
||||
.overrideProvider(getRepositoryToken(Group))
|
||||
.useValue({})
|
||||
.overrideProvider(getRepositoryToken(Author))
|
||||
.useValue({})
|
||||
.overrideProvider(getRepositoryToken(Session))
|
||||
.useValue({})
|
||||
.compile();
|
||||
|
||||
controller = module.get<HistoryController>(HistoryController);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue