* feat: rename commentThread into activity server * feat: rename commentThread into activity front * feat: migration only create tables feat: migration only create tables * Update activities * fix: rebase partial fix * fix: all rebase problems and drop activity target alter * fix: lint * Update migration * Update migration * Fix conflicts * Fix conflicts --------- Co-authored-by: Charles Bochet <charles@twenty.com>
38 lines
999 B
TypeScript
38 lines
999 B
TypeScript
import { Test, TestingModule } from '@nestjs/testing';
|
|
|
|
import { CommentService } from 'src/core/comment/comment.service';
|
|
import { ActivityService } from 'src/core/activity/services/activity.service';
|
|
|
|
import { CompanyRelationsResolver } from './company-relations.resolver';
|
|
import { CompanyService } from './company.service';
|
|
|
|
describe('CompanyRelationsResolver', () => {
|
|
let resolver: CompanyRelationsResolver;
|
|
|
|
beforeEach(async () => {
|
|
const module: TestingModule = await Test.createTestingModule({
|
|
providers: [
|
|
CompanyRelationsResolver,
|
|
{
|
|
provide: CompanyService,
|
|
useValue: {},
|
|
},
|
|
{
|
|
provide: ActivityService,
|
|
useValue: {},
|
|
},
|
|
{
|
|
provide: CommentService,
|
|
useValue: {},
|
|
},
|
|
],
|
|
}).compile();
|
|
|
|
resolver = module.get<CompanyRelationsResolver>(CompanyRelationsResolver);
|
|
});
|
|
|
|
it('should be defined', () => {
|
|
expect(resolver).toBeDefined();
|
|
});
|
|
});
|