Skip to content

Commit abb5184

Browse files
committed
fix writer test
1 parent 6b8e755 commit abb5184

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/routes/v1/blog/writer/unit.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('Writer blog create routes', () => {
2424
});
2525

2626
const request = supertest(app);
27-
const endpoint = '/v1/writer/blog';
27+
const endpoint = '/v1/blog/writer';
2828

2929
it('Should send error if the user do have writer role', async () => {
3030
const response = await addAuthHeaders(request.post(endpoint));
@@ -212,7 +212,7 @@ describe('Writer blog submit routes', () => {
212212
});
213213

214214
const request = supertest(app);
215-
const endpoint = '/v1/writer/blog/submit/';
215+
const endpoint = '/v1/blog/writer/submit/';
216216

217217
it('Should send error if submit blog id is not valid', async () => {
218218
const response = await addAuthHeaders(request.put(endpoint + 'abc'), WRITER_ACCESS_TOKEN);
@@ -253,7 +253,7 @@ describe('Writer blog withdraw routes', () => {
253253
});
254254

255255
const request = supertest(app);
256-
const endpoint = '/v1/writer/blog/withdraw/';
256+
const endpoint = '/v1/blog/writer/withdraw/';
257257

258258
it('Should send error if withdraw blog id is not valid', async () => {
259259
const response = await addAuthHeaders(request.put(endpoint + 'abc'), WRITER_ACCESS_TOKEN);
@@ -294,7 +294,7 @@ describe('Writer blog delete routes', () => {
294294
});
295295

296296
const request = supertest(app);
297-
const endpoint = '/v1/writer/blog/id/';
297+
const endpoint = '/v1/blog/writer/id/';
298298

299299
it('Should send error if deleting blog id is not valid', async () => {
300300
const response = await addAuthHeaders(request.delete(endpoint + 'abc'), WRITER_ACCESS_TOKEN);
@@ -334,7 +334,7 @@ describe('Writer blog get by id routes', () => {
334334
});
335335

336336
const request = supertest(app);
337-
const endpoint = '/v1/writer/blog/id/';
337+
const endpoint = '/v1/blog/writer/id/';
338338

339339
it('Should send error if fetching blog id is not valid', async () => {
340340
const response = await addAuthHeaders(request.get(endpoint + 'abc'), WRITER_ACCESS_TOKEN);

0 commit comments

Comments
 (0)