mirror of
https://github.com/lingble/twenty.git
synced 2025-11-15 13:35:07 +00:00
28 lines
652 B
TypeScript
28 lines
652 B
TypeScript
import { Test, TestingModule } from '@nestjs/testing';
|
|
|
|
import { FileService } from 'src/core/file/services/file.service';
|
|
|
|
import { FileController } from './file.controller';
|
|
|
|
describe('FileController', () => {
|
|
let controller: FileController;
|
|
|
|
beforeEach(async () => {
|
|
const module: TestingModule = await Test.createTestingModule({
|
|
controllers: [FileController],
|
|
providers: [
|
|
{
|
|
provide: FileService,
|
|
useValue: {},
|
|
},
|
|
],
|
|
}).compile();
|
|
|
|
controller = module.get<FileController>(FileController);
|
|
});
|
|
|
|
it('should be defined', () => {
|
|
expect(controller).toBeDefined();
|
|
});
|
|
});
|