@@ -26,7 +26,7 @@ describe('Writer blog create routes', () => {
26
26
} ) ;
27
27
28
28
const request = supertest ( app ) ;
29
- const endpoint = '/v1/ blog/writer' ;
29
+ const endpoint = '/blog/writer' ;
30
30
31
31
it ( 'Should send error if the user do have writer role' , async ( ) => {
32
32
const response = await addAuthHeaders ( request . post ( endpoint ) ) ;
@@ -214,7 +214,7 @@ describe('Writer blog submit routes', () => {
214
214
} ) ;
215
215
216
216
const request = supertest ( app ) ;
217
- const endpoint = '/v1/ blog/writer/submit/' ;
217
+ const endpoint = '/blog/writer/submit/' ;
218
218
219
219
it ( 'Should send error if submit blog id is not valid' , async ( ) => {
220
220
const response = await addAuthHeaders (
@@ -258,7 +258,7 @@ describe('Writer blog withdraw routes', () => {
258
258
} ) ;
259
259
260
260
const request = supertest ( app ) ;
261
- const endpoint = '/v1/ blog/writer/withdraw/' ;
261
+ const endpoint = '/blog/writer/withdraw/' ;
262
262
263
263
it ( 'Should send error if withdraw blog id is not valid' , async ( ) => {
264
264
const response = await addAuthHeaders (
@@ -302,7 +302,7 @@ describe('Writer blog delete routes', () => {
302
302
} ) ;
303
303
304
304
const request = supertest ( app ) ;
305
- const endpoint = '/v1/ blog/writer/id/' ;
305
+ const endpoint = '/blog/writer/id/' ;
306
306
307
307
it ( 'Should send error if deleting blog id is not valid' , async ( ) => {
308
308
const response = await addAuthHeaders (
@@ -345,7 +345,7 @@ describe('Writer blog get by id routes', () => {
345
345
} ) ;
346
346
347
347
const request = supertest ( app ) ;
348
- const endpoint = '/v1/ blog/writer/id/' ;
348
+ const endpoint = '/blog/writer/id/' ;
349
349
350
350
it ( 'Should send error if fetching blog id is not valid' , async ( ) => {
351
351
const response = await addAuthHeaders (
0 commit comments