Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
api/v1/posts/favoured/user for non existing user expose empty array test
Browse files Browse the repository at this point in the history
  • Loading branch information
RusAlex authored and voidxnull committed Oct 30, 2016
1 parent 9ab7bce commit 30314af
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/integration/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,14 @@ describe('api v.1', () => {
'body to satisfy', [{text: post.get('text')}]
);
});

it('/api/v1/posts/favoured for non existing user should expose json with empty array', async () => {
await expect(
{ url: `/api/v1/posts/favoured/nonexistinguser` },
'body to satisfy',
[]
);
});
});

describe('Likes', () => {
Expand Down

0 comments on commit 30314af

Please sign in to comment.