diff --git a/src/api/public/me/me.controller.spec.ts b/src/api/public/me/me.controller.spec.ts index 7ea008b21..9831c6ef0 100644 --- a/src/api/public/me/me.controller.spec.ts +++ b/src/api/public/me/me.controller.spec.ts @@ -5,6 +5,7 @@ import { LoggerModule } from '../../../logger/logger.module'; import { AuthorColor } from '../../../notes/author-color.entity'; import { Note } from '../../../notes/note.entity'; import { NotesModule } from '../../../notes/notes.module'; +import { Tag } from '../../../notes/tag.entity'; import { Authorship } from '../../../revisions/authorship.entity'; import { Revision } from '../../../revisions/revision.entity'; import { AuthToken } from '../../../users/auth-token.entity'; @@ -35,6 +36,8 @@ describe('Me Controller', () => { .useValue({}) .overrideProvider(getRepositoryToken(Revision)) .useValue({}) + .overrideProvider(getRepositoryToken(Tag)) + .useValue({}) .compile(); controller = module.get(MeController); diff --git a/src/api/public/notes/notes.controller.spec.ts b/src/api/public/notes/notes.controller.spec.ts index 6cbf98960..806f2f40f 100644 --- a/src/api/public/notes/notes.controller.spec.ts +++ b/src/api/public/notes/notes.controller.spec.ts @@ -4,6 +4,7 @@ import { LoggerModule } from '../../../logger/logger.module'; import { AuthorColor } from '../../../notes/author-color.entity'; import { Note } from '../../../notes/note.entity'; import { NotesService } from '../../../notes/notes.service'; +import { Tag } from '../../../notes/tag.entity'; import { Authorship } from '../../../revisions/authorship.entity'; import { Revision } from '../../../revisions/revision.entity'; import { RevisionsModule } from '../../../revisions/revisions.module'; @@ -25,6 +26,10 @@ describe('Notes Controller', () => { provide: getRepositoryToken(Note), useValue: {}, }, + { + provide: getRepositoryToken(Tag), + useValue: {}, + }, ], imports: [RevisionsModule, UsersModule, LoggerModule], }) @@ -44,6 +49,8 @@ describe('Notes Controller', () => { .useValue({}) .overrideProvider(getRepositoryToken(Note)) .useValue({}) + .overrideProvider(getRepositoryToken(Tag)) + .useValue({}) .compile(); controller = module.get(NotesController); diff --git a/src/notes/notes.service.spec.ts b/src/notes/notes.service.spec.ts index 4d18ca55f..a3383572d 100644 --- a/src/notes/notes.service.spec.ts +++ b/src/notes/notes.service.spec.ts @@ -11,6 +11,7 @@ import { UsersModule } from '../users/users.module'; import { AuthorColor } from './author-color.entity'; import { Note } from './note.entity'; import { NotesService } from './notes.service'; +import { Tag } from './tag.entity'; describe('NotesService', () => { let service: NotesService; @@ -23,6 +24,10 @@ describe('NotesService', () => { provide: getRepositoryToken(Note), useValue: {}, }, + { + provide: getRepositoryToken(Tag), + useValue: {}, + }, ], imports: [UsersModule, RevisionsModule, LoggerModule], }) @@ -40,6 +45,8 @@ describe('NotesService', () => { .useValue({}) .overrideProvider(getRepositoryToken(Note)) .useValue({}) + .overrideProvider(getRepositoryToken(Tag)) + .useValue({}) .compile(); service = module.get(NotesService); }); diff --git a/src/revisions/revisions.service.spec.ts b/src/revisions/revisions.service.spec.ts index 04e929973..4eb976257 100644 --- a/src/revisions/revisions.service.spec.ts +++ b/src/revisions/revisions.service.spec.ts @@ -10,6 +10,7 @@ import { User } from '../users/user.entity'; import { Authorship } from './authorship.entity'; import { Revision } from './revision.entity'; import { RevisionsService } from './revisions.service'; +import { Tag } from '../notes/tag.entity'; describe('RevisionsService', () => { let service: RevisionsService; @@ -39,6 +40,8 @@ describe('RevisionsService', () => { .useValue({}) .overrideProvider(getRepositoryToken(Revision)) .useValue({}) + .overrideProvider(getRepositoryToken(Tag)) + .useValue({}) .compile(); service = module.get(RevisionsService);