@@ -36,7 +36,7 @@ describe('BlogDetail by URL route', () => {
36
36
expect ( mockBlogFindByUrl ) . not . toBeCalled ( ) ;
37
37
} ) ;
38
38
39
- it ( 'Should send error when blog do not exists' , async ( ) => {
39
+ it ( 'Should send error when blog do not exists for url ' , async ( ) => {
40
40
const response = await addHeaders ( request . get ( endpoint )
41
41
. query ( { endpoint : 'xyz' } )
42
42
) ;
@@ -46,7 +46,7 @@ describe('BlogDetail by URL route', () => {
46
46
expect ( mockBlogFindByUrl ) . toBeCalledWith ( 'xyz' ) ;
47
47
} ) ;
48
48
49
- it ( 'Should send data when blog exists' , async ( ) => {
49
+ it ( 'Should send data when blog exists for url ' , async ( ) => {
50
50
const response = await addHeaders ( request . get ( endpoint )
51
51
. query ( { endpoint : BLOG_URL } )
52
52
) ;
@@ -75,7 +75,7 @@ describe('BlogDetail by id route', () => {
75
75
expect ( mockFindInfoWithTextById ) . not . toBeCalled ( ) ;
76
76
} ) ;
77
77
78
- it ( 'Should send error when blog do not exists' , async ( ) => {
78
+ it ( 'Should send error when blog do not exists for id ' , async ( ) => {
79
79
const response = await addHeaders (
80
80
request . get ( endpoint + new Types . ObjectId ( ) . toHexString ( ) )
81
81
) ;
@@ -84,7 +84,7 @@ describe('BlogDetail by id route', () => {
84
84
expect ( mockFindInfoWithTextById ) . toBeCalledTimes ( 1 ) ;
85
85
} ) ;
86
86
87
- it ( 'Should send data when blog exists' , async ( ) => {
87
+ it ( 'Should send data when blog exists for id ' , async ( ) => {
88
88
const response = await addHeaders (
89
89
request . get ( endpoint + BLOG_ID . toHexString ( ) )
90
90
) ;
0 commit comments