@@ -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
0 commit comments