Skip to content

Commit df56cfd

Browse files
committed
🧼 clean: ν…ŒμŠ€νŠΈ 상황 일관화
1 parent 9ac38b5 commit df56cfd

25 files changed

+158
-158
lines changed

β€Žserver/test/activity/dto/activity-param.dto.spec.tsβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('ReadActivityParamRequestDto Test', () => {
1010
});
1111
});
1212

13-
it('정상적인 userId둜 μœ νš¨μ„± 검사λ₯Ό ν†΅κ³Όν•œλ‹€.', async () => {
13+
it('μœ μ € IDκ°€ 1보닀 큰 μ •μˆ˜μΌ 경우 μœ νš¨μ„± 검사에 μ„±κ³΅ν•œλ‹€.', async () => {
1414
// when
1515
const errors = await validate(dto);
1616

@@ -19,7 +19,7 @@ describe('ReadActivityParamRequestDto Test', () => {
1919
});
2020

2121
describe('userId', () => {
22-
it('userIdκ°€ μ •μˆ˜κ°€ μ•„λ‹Œ λ¬Έμžμ—΄μ΄λ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
22+
it('μœ μ € IDκ°€ μ •μˆ˜κ°€ μ•„λ‹ˆκ³  λ¬Έμžμ—΄μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
2323
// given
2424
dto.userId = 'invalid' as any;
2525

@@ -31,7 +31,7 @@ describe('ReadActivityParamRequestDto Test', () => {
3131
expect(errors[0].constraints).toHaveProperty('isInt');
3232
});
3333

34-
it('userIdκ°€ μ •μˆ˜κ°€ μ•„λ‹Œ μ‹€μˆ˜μ΄λ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
34+
it('μœ μ € IDκ°€ μ •μˆ˜κ°€ μ•„λ‹ˆκ³  μ‹€μˆ˜μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
3535
// given
3636
dto.userId = 1.5;
3737

@@ -43,7 +43,7 @@ describe('ReadActivityParamRequestDto Test', () => {
4343
expect(errors[0].constraints).toHaveProperty('isInt');
4444
});
4545

46-
it('userIdκ°€ 1보닀 μž‘μœΌλ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
46+
it('μœ μ € IDκ°€ 1 미만일 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
4747
// given
4848
dto.userId = 0;
4949

@@ -55,7 +55,7 @@ describe('ReadActivityParamRequestDto Test', () => {
5555
expect(errors[0].constraints).toHaveProperty('min');
5656
});
5757

58-
it('userIdκ°€ 음수이면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
58+
it('μœ μ € IDκ°€ 음수일 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
5959
// given
6060
dto.userId = -1;
6161

β€Žserver/test/activity/dto/activity-query.dto.spec.tsβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('ReadActivityQueryRequestDto Test', () => {
1010
});
1111
});
1212

13-
it('정상적인 year둜 μœ νš¨μ„± 검사λ₯Ό ν†΅κ³Όν•œλ‹€.', async () => {
13+
it('연도가 2000보닀 크고 3000보닀 μž‘μ„ 경우 μœ νš¨μ„± 검사에 μ„±κ³΅ν•œλ‹€.', async () => {
1414
// when
1515
const errors = await validate(dto);
1616

@@ -19,7 +19,7 @@ describe('ReadActivityQueryRequestDto Test', () => {
1919
});
2020

2121
describe('year', () => {
22-
it('yearκ°€ μ •μˆ˜κ°€ μ•„λ‹Œ λ¬Έμžμ—΄μ΄λ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
22+
it('연도가 μ •μˆ˜κ°€ μ•„λ‹ˆκ³  λ¬Έμžμ—΄μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
2323
// given
2424
dto.year = 'invalid' as any;
2525

@@ -31,7 +31,7 @@ describe('ReadActivityQueryRequestDto Test', () => {
3131
expect(errors[0].constraints).toHaveProperty('isInt');
3232
});
3333

34-
it('yearκ°€ μ •μˆ˜κ°€ μ•„λ‹Œ μ‹€μˆ˜μ΄λ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
34+
it('연도가 μ •μˆ˜κ°€ μ•„λ‹ˆκ³  μ‹€μˆ˜μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
3535
// given
3636
dto.year = 2024.5;
3737

@@ -43,7 +43,7 @@ describe('ReadActivityQueryRequestDto Test', () => {
4343
expect(errors[0].constraints).toHaveProperty('isInt');
4444
});
4545

46-
it('yearκ°€ 2000λ…„ 미만이면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
46+
it('연도가 2000λ…„ 미만일 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
4747
// given
4848
dto.year = 1999;
4949

@@ -55,7 +55,7 @@ describe('ReadActivityQueryRequestDto Test', () => {
5555
expect(errors[0].constraints).toHaveProperty('min');
5656
});
5757

58-
it('yearκ°€ 3000λ…„ 초과이면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
58+
it('연도가 3000λ…„ 초과일 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
5959
// given
6060
dto.year = 3001;
6161

@@ -67,7 +67,7 @@ describe('ReadActivityQueryRequestDto Test', () => {
6767
expect(errors[0].constraints).toHaveProperty('max');
6868
});
6969

70-
it('yearκ°€ 2000년이면 μœ νš¨μ„± 검사λ₯Ό ν†΅κ³Όν•œλ‹€.', async () => {
70+
it('연도가 2000년일 경우 μœ νš¨μ„± 검사에 ν†΅κ³Όν•œλ‹€.', async () => {
7171
// given
7272
dto.year = 2000;
7373

@@ -78,7 +78,7 @@ describe('ReadActivityQueryRequestDto Test', () => {
7878
expect(errors).toHaveLength(0);
7979
});
8080

81-
it('yearκ°€ 3000년이면 μœ νš¨μ„± 검사λ₯Ό ν†΅κ³Όν•œλ‹€.', async () => {
81+
it('연도가 3000년일 경우 μœ νš¨μ„± 검사에 ν†΅κ³Όν•œλ‹€.', async () => {
8282
// given
8383
dto.year = 3000;
8484

β€Žserver/test/admin/dto/login.dto.spec.tsβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('LoginAdminRequestDto Test', () => {
99
dto = new LoginAdminRequestDto(AdminFixture.createAdminFixture());
1010
});
1111

12-
it('ID와 νŒ¨μŠ€μ›Œλ“œκ°€ μžˆμ„ 경우 μœ νš¨μ„± 검사에 μ„±κ³΅ν•œλ‹€.', async () => {
12+
it('ID와 νŒ¨μŠ€μ›Œλ“œκ°€ λ¬Έμžμ—΄μΌ 경우 μœ νš¨μ„± 검사에 μ„±κ³΅ν•œλ‹€.', async () => {
1313
//when
1414
const errors = await validate(dto);
1515

@@ -18,7 +18,7 @@ describe('LoginAdminRequestDto Test', () => {
1818
});
1919

2020
describe('loginId', () => {
21-
it('ID에 null이 μž…λ ₯되면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
21+
it('둜그인 IDκ°€ 없을 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
2222
//given
2323
dto.loginId = null;
2424

@@ -30,7 +30,7 @@ describe('LoginAdminRequestDto Test', () => {
3030
expect(errors[0].constraints).toHaveProperty('isNotEmpty');
3131
});
3232

33-
it('ID에 빈 λ¬Έμžμ—΄μ΄ μž…λ ₯되면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
33+
it('둜그인 IDκ°€ 빈 λ¬Έμžμ—΄μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
3434
//given
3535
dto.loginId = '';
3636

@@ -42,7 +42,7 @@ describe('LoginAdminRequestDto Test', () => {
4242
expect(errors[0].constraints).toHaveProperty('isNotEmpty');
4343
});
4444

45-
it('ID에 λ¬Έμžμ—΄μ΄ μ•„λ‹Œ 값이 μž…λ ₯되면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
45+
it('둜그인 IDκ°€ λ¬Έμžμ—΄μ΄ μ•„λ‹ˆκ³  μ •μˆ˜μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
4646
//given
4747
dto.loginId = 1 as any;
4848

@@ -56,7 +56,7 @@ describe('LoginAdminRequestDto Test', () => {
5656
});
5757

5858
describe('password', () => {
59-
it('νŒ¨μŠ€μ›Œλ“œμ— null이 μž…λ ₯되면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
59+
it('νŒ¨μŠ€μ›Œλ“œκ°€ 없을 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
6060
//given
6161
dto.password = null;
6262

@@ -68,7 +68,7 @@ describe('LoginAdminRequestDto Test', () => {
6868
expect(errors[0].constraints).toHaveProperty('isNotEmpty');
6969
});
7070

71-
it('νŒ¨μŠ€μ›Œλ“œμ— 빈 λ¬Έμžμ—΄μ΄ μž…λ ₯되면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
71+
it('νŒ¨μŠ€μ›Œλ“œκ°€ 빈 λ¬Έμžμ—΄μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
7272
//given
7373
dto.password = '';
7474

@@ -80,7 +80,7 @@ describe('LoginAdminRequestDto Test', () => {
8080
expect(errors[0].constraints).toHaveProperty('isNotEmpty');
8181
});
8282

83-
it('νŒ¨μŠ€μ›Œλ“œμ— λ¬Έμžμ—΄μ΄ μ•„λ‹Œ 값이 μž…λ ₯되면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
83+
it('νŒ¨μŠ€μ›Œλ“œκ°€ λ¬Έμžμ—΄μ΄ μ•„λ‹ˆκ³  μ •μˆ˜μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
8484
//given
8585
dto.password = 1 as any;
8686

β€Žserver/test/admin/dto/register.dto.spec.tsβ€Ž

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('RegisterAdminRequestDto Test', () => {
99
dto = new RegisterAdminRequestDto(AdminFixture.createAdminFixture());
1010
});
1111

12-
it('ID와 νŒ¨μŠ€μ›Œλ“œκ°€ μ˜¬λ°”λ₯΄κ²Œ μžˆμ„ 경우 μœ νš¨μ„± 검사에 μ„±κ³΅ν•œλ‹€.', async () => {
12+
it('ID와 νŒ¨μŠ€μ›Œλ“œκ°€ 정책에 λΆ€ν•©ν•  경우 μœ νš¨μ„± 검사에 μ„±κ³΅ν•œλ‹€.', async () => {
1313
// when
1414
const errors = await validate(dto);
1515

@@ -18,7 +18,7 @@ describe('RegisterAdminRequestDto Test', () => {
1818
});
1919

2020
describe('loginId', () => {
21-
it('ID의 길이가 6 이상이 μ•„λ‹ˆλΌλ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
21+
it('ID의 길이가 6 미만일 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
2222
//given
2323
dto.loginId = 'test';
2424

@@ -30,7 +30,7 @@ describe('RegisterAdminRequestDto Test', () => {
3030
expect(errors[0].constraints).toHaveProperty('isLength');
3131
});
3232

33-
it('ID의 길이가 255 μ΄ν•˜κ°€ μ•„λ‹ˆλΌλ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
33+
it('ID의 길이가 255 초과일 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
3434
//given
3535
dto.loginId = 'a'.repeat(256);
3636

@@ -42,7 +42,7 @@ describe('RegisterAdminRequestDto Test', () => {
4242
expect(errors[0].constraints).toHaveProperty('isLength');
4343
});
4444

45-
it('ID에 null이 μž…λ ₯되면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
45+
it('IDκ°€ 없을 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
4646
//given
4747
dto.loginId = null;
4848

@@ -54,7 +54,7 @@ describe('RegisterAdminRequestDto Test', () => {
5454
expect(errors[0].constraints).toHaveProperty('isNotEmpty');
5555
});
5656

57-
it('ID에 빈 λ¬Έμžμ—΄μ΄ μž…λ ₯되면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
57+
it('IDκ°€ 빈 λ¬Έμžμ—΄μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
5858
//given
5959
dto.loginId = '';
6060

@@ -66,7 +66,7 @@ describe('RegisterAdminRequestDto Test', () => {
6666
expect(errors[0].constraints).toHaveProperty('isNotEmpty');
6767
});
6868

69-
it('ID에 λ¬Έμžμ—΄μ΄ μ•„λ‹Œ 값이 μž…λ ₯되면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
69+
it('IDκ°€ λ¬Έμžμ—΄μ΄ μ•„λ‹ˆκ³  μ •μˆ˜μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
7070
//given
7171
dto.loginId = 1 as any;
7272

@@ -80,7 +80,7 @@ describe('RegisterAdminRequestDto Test', () => {
8080
});
8181

8282
describe('password', () => {
83-
it('νŒ¨μŠ€μ›Œλ“œμ˜ 길이가 6 이상이 μ•„λ‹ˆλΌλ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
83+
it('νŒ¨μŠ€μ›Œλ“œ 길이가 6 미만일 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
8484
//given
8585
dto.password = 'a'.repeat(5);
8686

@@ -92,7 +92,7 @@ describe('RegisterAdminRequestDto Test', () => {
9292
expect(errors[0].constraints).toHaveProperty('isLength');
9393
});
9494

95-
it('νŒ¨μŠ€μ›Œλ“œμ˜ 길이가 6 이상, 60 μ΄ν•˜κ°€ μ•„λ‹ˆλΌλ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
95+
it('νŒ¨μŠ€μ›Œλ“œ 길이가 61 초과일 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
9696
//given
9797
dto.password = 'a'.repeat(61);
9898

@@ -104,7 +104,7 @@ describe('RegisterAdminRequestDto Test', () => {
104104
expect(errors[0].constraints).toHaveProperty('isLength');
105105
});
106106

107-
it('νŒ¨μŠ€μ›Œλ“œμ— νŠΉμˆ˜λ¬Έμžκ°€ ν•˜λ‚˜ 이상 μ—†λ‹€λ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
107+
it('νŒ¨μŠ€μ›Œλ“œμ— νŠΉμˆ˜λ¬Έμžκ°€ ν•˜λ‚˜ 이상 없을 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
108108
//given
109109
dto.password = 'testAdminPassword';
110110

@@ -116,7 +116,7 @@ describe('RegisterAdminRequestDto Test', () => {
116116
expect(errors[0].constraints).toHaveProperty('matches');
117117
});
118118

119-
it('νŒ¨μŠ€μ›Œλ“œμ— null이 μž…λ ₯되면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
119+
it('νŒ¨μŠ€μ›Œλ“œκ°€ 없을 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
120120
//given
121121
dto.password = null;
122122

@@ -128,7 +128,7 @@ describe('RegisterAdminRequestDto Test', () => {
128128
expect(errors[0].constraints).toHaveProperty('isNotEmpty');
129129
});
130130

131-
it('νŒ¨μŠ€μ›Œλ“œμ— 빈 λ¬Έμžμ—΄μ΄ μž…λ ₯되면 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
131+
it('νŒ¨μŠ€μ›Œλ“œκ°€ 빈 λ¬Έμžμ—΄μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
132132
//given
133133
dto.password = '';
134134

β€Žserver/test/comment/dto/create.dto.spec.tsβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('CreateCommentRequestDto Test', () => {
1111
});
1212
});
1313

14-
it('λŒ“κΈ€ λ‚΄μš©κ³Ό κ²Œμ‹œκΈ€ IDκ°€ μžˆμ„ 경우 μœ νš¨μ„± 검사에 μ„±κ³΅ν•œλ‹€.', async () => {
14+
it('λŒ“κΈ€ λ‚΄μš©κ³Ό ν”Όλ“œ IDκ°€ μžˆμ„ 경우 μœ νš¨μ„± 검사에 μ„±κ³΅ν•œλ‹€.', async () => {
1515
// when
1616
const errors = await validate(dto);
1717

@@ -20,7 +20,7 @@ describe('CreateCommentRequestDto Test', () => {
2020
});
2121

2222
describe('comment', () => {
23-
it('λŒ“κΈ€ λ‚΄μš©μ΄ λ¬Έμžμ—΄μ΄ 아닐 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
23+
it('λŒ“κΈ€ λ‚΄μš©μ΄ λ¬Έμžμ—΄μ΄ μ•„λ‹ˆκ³  μ •μˆ˜μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
2424
// given
2525
dto.comment = 1 as any;
2626

@@ -32,7 +32,7 @@ describe('CreateCommentRequestDto Test', () => {
3232
expect(errors[0].constraints).toHaveProperty('isString');
3333
});
3434

35-
it('λŒ“κΈ€ 속성이 λΉ„μ–΄μžˆλ‹€λ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
35+
it('λŒ“κΈ€ λ‚΄μš©μ΄ 없을 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
3636
// given
3737
dto.comment = null;
3838

@@ -44,7 +44,7 @@ describe('CreateCommentRequestDto Test', () => {
4444
expect(errors[0].constraints).toHaveProperty('isNotEmpty');
4545
});
4646

47-
it('λŒ“κΈ€μ— 빈 λ¬Έμžμ—΄μ΄ μžˆλ‹€λ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
47+
it('λŒ“κΈ€ λ‚΄μš©μ΄ 빈 λ¬Έμžμ—΄μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
4848
// given
4949
dto.comment = '';
5050

@@ -58,7 +58,7 @@ describe('CreateCommentRequestDto Test', () => {
5858
});
5959

6060
describe('feedId', () => {
61-
it('ν”Όλ“œ 아이디가 없을 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
61+
it('ν”Όλ“œ IDκ°€ 없을 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
6262
// given
6363
dto.feedId = null;
6464

@@ -70,7 +70,7 @@ describe('CreateCommentRequestDto Test', () => {
7070
expect(errors[0].constraints).toHaveProperty('isInt');
7171
});
7272

73-
it('ν”Όλ“œ 아이디가 μ •μˆ˜κ°€ 아닐 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
73+
it('ν”Όλ“œ IDκ°€ μ •μˆ˜κ°€ μ•„λ‹ˆκ³  λ¬Έμžμ—΄μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
7474
// given
7575
dto.feedId = 'test' as any;
7676

β€Žserver/test/comment/dto/delete.dto.spec.tsβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('DeleteCommentRequestDto Test', () => {
1010
});
1111
});
1212

13-
it('λŒ“κΈ€ 아이디가 1보닀 큰 μ •μˆ˜μΌ 경우 μœ νš¨μ„± 검사에 μ„±κ³΅ν•œλ‹€.', async () => {
13+
it('λŒ“κΈ€ IDκ°€ 1 μ΄μƒμ˜ μ •μˆ˜μΌ 경우 μœ νš¨μ„± 검사에 μ„±κ³΅ν•œλ‹€.', async () => {
1414
// when
1515
const errors = await validate(dto);
1616

@@ -19,7 +19,7 @@ describe('DeleteCommentRequestDto Test', () => {
1919
});
2020

2121
describe('commentId', () => {
22-
it('λŒ“κΈ€ 아이디가 λΉ„μ–΄μžˆλ‹€λ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
22+
it('λŒ“κΈ€ IDκ°€ 없을 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
2323
// given
2424
dto.commentId = null;
2525

@@ -31,7 +31,7 @@ describe('DeleteCommentRequestDto Test', () => {
3131
expect(errors[0].constraints).toHaveProperty('isInt');
3232
});
3333

34-
it('λŒ“κΈ€ 아이디가 μ •μˆ˜κ°€ 아닐 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
34+
it('λŒ“κΈ€ IDκ°€ μ •μˆ˜κ°€ μ•„λ‹ˆκ³  λ¬Έμžμ—΄μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
3535
// given
3636
dto.commentId = 'test' as any;
3737

@@ -43,7 +43,7 @@ describe('DeleteCommentRequestDto Test', () => {
4343
expect(errors[0].constraints).toHaveProperty('isInt');
4444
});
4545

46-
it('λŒ“κΈ€ 아이디가 1보닀 μž‘μ€ 수일 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
46+
it('λŒ“κΈ€ IDκ°€ 1 미만의 μ •μˆ˜μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
4747
// given
4848
dto.commentId = 0;
4949

β€Žserver/test/comment/dto/get.dto.spec.tsβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('GetCommentRequestDto Test', () => {
1010
});
1111
});
1212

13-
it('κ²Œμ‹œκΈ€ IDκ°€ 1보닀 큰 μ •μˆ˜μΌ 경우 μœ νš¨μ„± 검사에 μ„±κ³΅ν•œλ‹€.', async () => {
13+
it('κ²Œμ‹œκΈ€ IDκ°€ 1 μ΄μƒμ˜ μ •μˆ˜μΌ 경우 μœ νš¨μ„± 검사에 μ„±κ³΅ν•œλ‹€.', async () => {
1414
// when
1515
const errors = await validate(dto);
1616

@@ -19,7 +19,7 @@ describe('GetCommentRequestDto Test', () => {
1919
});
2020

2121
describe('feedId', () => {
22-
it('κ²Œμ‹œκΈ€ 아이디가 λΉ„μ–΄μžˆλ‹€λ©΄ μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
22+
it('κ²Œμ‹œκΈ€ IDκ°€ 없을 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
2323
// given
2424
dto.feedId = null;
2525

@@ -31,7 +31,7 @@ describe('GetCommentRequestDto Test', () => {
3131
expect(errors[0].constraints).toHaveProperty('isInt');
3232
});
3333

34-
it('κ²Œμ‹œκΈ€ 아이디가 μ •μˆ˜κ°€ 아닐 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
34+
it('κ²Œμ‹œκΈ€ IDκ°€ μ •μˆ˜κ°€ μ•„λ‹ˆκ³  λ¬Έμžμ—΄μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
3535
// given
3636
dto.feedId = 'test' as any;
3737

@@ -43,7 +43,7 @@ describe('GetCommentRequestDto Test', () => {
4343
expect(errors[0].constraints).toHaveProperty('isInt');
4444
});
4545

46-
it('κ²Œμ‹œκΈ€ 아이디가 1보닀 μž‘μ€ 수일 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
46+
it('κ²Œμ‹œκΈ€ IDκ°€ 1 미만의 μ •μˆ˜μΌ 경우 μœ νš¨μ„± 검사에 μ‹€νŒ¨ν•œλ‹€.', async () => {
4747
// given
4848
dto.feedId = 0;
4949

0 commit comments

Comments
Β (0)