@@ -28,7 +28,7 @@ describe('UpdateCommentRequestDto Test', () => {
2828 const errors = await validate ( dto ) ;
2929
3030 // then
31- expect ( errors ) . not . toHaveLength ( 0 ) ;
31+ expect ( errors ) . toHaveLength ( 1 ) ;
3232 expect ( errors [ 0 ] . constraints ) . toHaveProperty ( 'isNotEmpty' ) ;
3333 } ) ;
3434
@@ -40,7 +40,7 @@ describe('UpdateCommentRequestDto Test', () => {
4040 const errors = await validate ( dto ) ;
4141
4242 // then
43- expect ( errors ) . not . toHaveLength ( 0 ) ;
43+ expect ( errors ) . toHaveLength ( 1 ) ;
4444 expect ( errors [ 0 ] . constraints ) . toHaveProperty ( 'isString' ) ;
4545 } ) ;
4646 } ) ;
@@ -54,7 +54,7 @@ describe('UpdateCommentRequestDto Test', () => {
5454 const errors = await validate ( dto ) ;
5555
5656 // then
57- expect ( errors ) . not . toHaveLength ( 0 ) ;
57+ expect ( errors ) . toHaveLength ( 1 ) ;
5858 expect ( errors [ 0 ] . constraints ) . toHaveProperty ( 'isInt' ) ;
5959 } ) ;
6060
@@ -66,7 +66,7 @@ describe('UpdateCommentRequestDto Test', () => {
6666 const errors = await validate ( dto ) ;
6767
6868 // then
69- expect ( errors ) . not . toHaveLength ( 0 ) ;
69+ expect ( errors ) . toHaveLength ( 1 ) ;
7070 expect ( errors [ 0 ] . constraints ) . toHaveProperty ( 'isInt' ) ;
7171 } ) ;
7272
@@ -78,7 +78,7 @@ describe('UpdateCommentRequestDto Test', () => {
7878 const errors = await validate ( dto ) ;
7979
8080 // then
81- expect ( errors ) . not . toHaveLength ( 0 ) ;
81+ expect ( errors ) . toHaveLength ( 1 ) ;
8282 expect ( errors [ 0 ] . constraints ) . toHaveProperty ( 'isInt' ) ;
8383 } ) ;
8484 } ) ;
0 commit comments