diff --git a/src/modules/post/post.controller.spec.ts b/src/modules/post/post.controller.spec.ts new file mode 100644 index 0000000..a669429 --- /dev/null +++ b/src/modules/post/post.controller.spec.ts @@ -0,0 +1,18 @@ +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); + }); + + it('should be defined', () => { + expect(controller).toBeDefined(); + }); +}); diff --git a/src/modules/post/post.controller.ts b/src/modules/post/post.controller.ts new file mode 100644 index 0000000..2c90f16 --- /dev/null +++ b/src/modules/post/post.controller.ts @@ -0,0 +1,4 @@ +import { Controller } from '@nestjs/common'; + +@Controller('post') +export class PostController {} diff --git a/src/modules/post/post.module.ts b/src/modules/post/post.module.ts index b9a733f..d2323c5 100644 --- a/src/modules/post/post.module.ts +++ b/src/modules/post/post.module.ts @@ -1,4 +1,7 @@ import { Module } from '@nestjs/common'; +import { PostController } from './post.controller'; -@Module({}) +@Module({ + controllers: [PostController] +}) export class PostModule {}