* 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>
29 lines
711 B
TypeScript
29 lines
711 B
TypeScript
import { Test, TestingModule } from '@nestjs/testing';
|
|
|
|
import { PrismaService } from 'src/database/prisma.service';
|
|
import { prismaMock } from 'src/database/client-mock/jest-prisma-singleton';
|
|
|
|
import { CommentService } from './comment.service';
|
|
|
|
describe('CommentService', () => {
|
|
let service: CommentService;
|
|
|
|
beforeEach(async () => {
|
|
const module: TestingModule = await Test.createTestingModule({
|
|
providers: [
|
|
CommentService,
|
|
{
|
|
provide: PrismaService,
|
|
useValue: prismaMock,
|
|
},
|
|
],
|
|
}).compile();
|
|
|
|
service = module.get<CommentService>(CommentService);
|
|
});
|
|
|
|
it('should be defined', () => {
|
|
expect(service).toBeDefined();
|
|
});
|
|
});
|