Skip to content

Commit 9ac38b5

Browse files
committed
✅ test: code rabbit 리뷰 반영
1 parent a0461f4 commit 9ac38b5

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

server/test/admin/dto/login.dto.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ describe('LoginAdminRequestDto Test', () => {
2828
//then
2929
expect(errors).toHaveLength(1);
3030
expect(errors[0].constraints).toHaveProperty('isNotEmpty');
31-
expect(errors[0].constraints).toHaveProperty('isString');
3231
});
3332

3433
it('ID에 빈 문자열이 입력되면 유효성 검사에 실패한다.', async () => {
@@ -67,7 +66,6 @@ describe('LoginAdminRequestDto Test', () => {
6766
//then
6867
expect(errors).toHaveLength(1);
6968
expect(errors[0].constraints).toHaveProperty('isNotEmpty');
70-
expect(errors[0].constraints).toHaveProperty('isString');
7169
});
7270

7371
it('패스워드에 빈 문자열이 입력되면 유효성 검사에 실패한다.', async () => {

server/test/file/dto/delete.dto.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('DeleteFileRequestDto Test', () => {
88
dto = new DeleteFileRequestDto({ id: 1 });
99
});
1010

11-
it('id가 정수이고 1 이상일 경우 테스트를 통과한다..', async () => {
11+
it('id가 정수이고 1 이상일 경우 테스트를 통과한다.', async () => {
1212
// when
1313
const errors = await validate(dto);
1414

File renamed without changes.

server/test/user/dto/register.dto.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ describe('RegisterUserRequestDto Test', () => {
144144
expect(errors[0].constraints).toHaveProperty('isNotEmpty');
145145
});
146146

147-
it('사용자 이름이 빈 문자열이면 유효성 검사에 실패한다.', async () => {
147+
it('사용자 이름이 없으면 유효성 검사에 실패한다.', async () => {
148148
// given
149149
dto.userName = null;
150150

@@ -156,7 +156,7 @@ describe('RegisterUserRequestDto Test', () => {
156156
expect(errors[0].constraints).toHaveProperty('isNotEmpty');
157157
});
158158

159-
it('사용자 이름이 빈 문자열이면 유효성 검사에 실패한다.', async () => {
159+
it('사용자 이름이 문자열이 아니면 유효성 검사에 실패한다.', async () => {
160160
// given
161161
dto.userName = 1 as any;
162162

0 commit comments

Comments
 (0)