Files
twenty/server/src/core/file/controllers/file.controller.spec.ts
2023-07-19 14:01:32 +02:00

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();
});
});