19 lines
		
	
	
		
			479 B
		
	
	
	
		
			TypeScript
		
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			479 B
		
	
	
	
		
			TypeScript
		
	
	
	
| import { Test, TestingModule } from '@nestjs/testing';
 | |
| import { PostController } from './post.controller';
 | |
| 
 | |
| describe('Post Controller', () => {
 | |
|   let controller: PostController;
 | |
| 
 | |
|   beforeEach(async () => {
 | |
|     const module: TestingModule = await Test.createTestingModule({
 | |
|       controllers: [PostController],
 | |
|     }).compile();
 | |
| 
 | |
|     controller = module.get<PostController>(PostController);
 | |
|   });
 | |
| 
 | |
|   it('should be defined', () => {
 | |
|     expect(controller).toBeDefined();
 | |
|   });
 | |
| });
 |