Skip to content

Commit 12d6710

Browse files
committed
modify blogdetail test message
1 parent 59a0bc0 commit 12d6710

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/routes/v1/blog/blogDetail/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)