@@ -36,7 +36,7 @@ describe('BlogDetail by URL route', () => {
3636 expect ( mockBlogFindByUrl ) . not . toBeCalled ( ) ;
3737 } ) ;
3838
39- it ( 'Should send error when blog do not exists' , async ( ) => {
39+ it ( 'Should send error when blog do not exists for url ' , async ( ) => {
4040 const response = await addHeaders ( request . get ( endpoint )
4141 . query ( { endpoint : 'xyz' } )
4242 ) ;
@@ -46,7 +46,7 @@ describe('BlogDetail by URL route', () => {
4646 expect ( mockBlogFindByUrl ) . toBeCalledWith ( 'xyz' ) ;
4747 } ) ;
4848
49- it ( 'Should send data when blog exists' , async ( ) => {
49+ it ( 'Should send data when blog exists for url ' , async ( ) => {
5050 const response = await addHeaders ( request . get ( endpoint )
5151 . query ( { endpoint : BLOG_URL } )
5252 ) ;
@@ -75,7 +75,7 @@ describe('BlogDetail by id route', () => {
7575 expect ( mockFindInfoWithTextById ) . not . toBeCalled ( ) ;
7676 } ) ;
7777
78- it ( 'Should send error when blog do not exists' , async ( ) => {
78+ it ( 'Should send error when blog do not exists for id ' , async ( ) => {
7979 const response = await addHeaders (
8080 request . get ( endpoint + new Types . ObjectId ( ) . toHexString ( ) )
8181 ) ;
@@ -84,7 +84,7 @@ describe('BlogDetail by id route', () => {
8484 expect ( mockFindInfoWithTextById ) . toBeCalledTimes ( 1 ) ;
8585 } ) ;
8686
87- it ( 'Should send data when blog exists' , async ( ) => {
87+ it ( 'Should send data when blog exists for id ' , async ( ) => {
8888 const response = await addHeaders (
8989 request . get ( endpoint + BLOG_ID . toHexString ( ) )
9090 ) ;
0 commit comments