Skip to content

Commit

Permalink
feat: chat rood 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
yummyicecream committed Jan 29, 2024
1 parent 9324009 commit ceba58f
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import { AppService } from './app.service';
import { PostsModule } from './posts/posts.module';
import { UserModule } from './user/user.module';
import { CommentsModule } from './comments/comments.module';
import { ChatModule } from './chat/chat.module';

@Module({
imports: [PostsModule, UserModule, CommentsModule],
imports: [PostsModule, UserModule, CommentsModule, ChatModule],
controllers: [AppController],
providers: [AppService],
})
Expand Down
18 changes: 18 additions & 0 deletions src/chat/chat.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Test, TestingModule } from '@nestjs/testing';
import { ChatController } from './chat.controller';

describe('ChatController', () => {
let controller: ChatController;

beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [ChatController],
}).compile();

controller = module.get<ChatController>(ChatController);
});

it('should be defined', () => {
expect(controller).toBeDefined();
});
});
4 changes: 4 additions & 0 deletions src/chat/chat.controller.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Controller } from '@nestjs/common';

@Controller('chat')
export class ChatController {}
9 changes: 9 additions & 0 deletions src/chat/chat.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Module } from '@nestjs/common';
import { ChatController } from './chat.controller';
import { ChatService } from './chat.service';

@Module({
controllers: [ChatController],
providers: [ChatService]
})
export class ChatModule {}
18 changes: 18 additions & 0 deletions src/chat/chat.service.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Test, TestingModule } from '@nestjs/testing';
import { ChatService } from './chat.service';

describe('ChatService', () => {
let service: ChatService;

beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [ChatService],
}).compile();

service = module.get<ChatService>(ChatService);
});

it('should be defined', () => {
expect(service).toBeDefined();
});
});
4 changes: 4 additions & 0 deletions src/chat/chat.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { Injectable } from '@nestjs/common';

@Injectable()
export class ChatService {}
2 changes: 1 addition & 1 deletion src/comments/comments.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Controller } from '@nestjs/common';

@Controller('comments')
export class CommentsController {}
export class CommentsController {}

0 comments on commit ceba58f

Please sign in to comment.