@@ -24,7 +24,7 @@ describe('Writer blog create routes', () => {
24
24
} ) ;
25
25
26
26
const request = supertest ( app ) ;
27
- const endpoint = '/v1/writer/ blog' ;
27
+ const endpoint = '/v1/blog/writer ' ;
28
28
29
29
it ( 'Should send error if the user do have writer role' , async ( ) => {
30
30
const response = await addAuthHeaders ( request . post ( endpoint ) ) ;
@@ -212,7 +212,7 @@ describe('Writer blog submit routes', () => {
212
212
} ) ;
213
213
214
214
const request = supertest ( app ) ;
215
- const endpoint = '/v1/writer/ blog/submit/' ;
215
+ const endpoint = '/v1/blog/writer /submit/' ;
216
216
217
217
it ( 'Should send error if submit blog id is not valid' , async ( ) => {
218
218
const response = await addAuthHeaders ( request . put ( endpoint + 'abc' ) , WRITER_ACCESS_TOKEN ) ;
@@ -253,7 +253,7 @@ describe('Writer blog withdraw routes', () => {
253
253
} ) ;
254
254
255
255
const request = supertest ( app ) ;
256
- const endpoint = '/v1/writer/ blog/withdraw/' ;
256
+ const endpoint = '/v1/blog/writer /withdraw/' ;
257
257
258
258
it ( 'Should send error if withdraw blog id is not valid' , async ( ) => {
259
259
const response = await addAuthHeaders ( request . put ( endpoint + 'abc' ) , WRITER_ACCESS_TOKEN ) ;
@@ -294,7 +294,7 @@ describe('Writer blog delete routes', () => {
294
294
} ) ;
295
295
296
296
const request = supertest ( app ) ;
297
- const endpoint = '/v1/writer/ blog/id/' ;
297
+ const endpoint = '/v1/blog/writer /id/' ;
298
298
299
299
it ( 'Should send error if deleting blog id is not valid' , async ( ) => {
300
300
const response = await addAuthHeaders ( request . delete ( endpoint + 'abc' ) , WRITER_ACCESS_TOKEN ) ;
@@ -334,7 +334,7 @@ describe('Writer blog get by id routes', () => {
334
334
} ) ;
335
335
336
336
const request = supertest ( app ) ;
337
- const endpoint = '/v1/writer/ blog/id/' ;
337
+ const endpoint = '/v1/blog/writer /id/' ;
338
338
339
339
it ( 'Should send error if fetching blog id is not valid' , async ( ) => {
340
340
const response = await addAuthHeaders ( request . get ( endpoint + 'abc' ) , WRITER_ACCESS_TOKEN ) ;
0 commit comments