Skip to content

Commit

Permalink
satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
CirnoT committed Jun 27, 2020
1 parent 11d536a commit 7a4fbb8
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions lib/util/http/gitea.spec.ts
Expand Up @@ -60,9 +60,12 @@ describe(getName(__filename), () => {
.get('/pagination-example-2?page=3')
.reply(200, { data: ['mno', 'pqr'] });

const res = await giteaHttp.getJson<{ data: string[] }>('pagination-example-2', {
paginate: true,
});
const res = await giteaHttp.getJson<{ data: string[] }>(
'pagination-example-2',
{
paginate: true,
}
);
expect(res.body.data).toHaveLength(6);
expect(res.body.data).toEqual(['abc', 'def', 'ghi', 'jkl', 'mno', 'pqr']);
expect(httpMock.getTrace()).toMatchSnapshot();
Expand All @@ -75,9 +78,12 @@ describe(getName(__filename), () => {
.get('/pagination-example-3?page=2')
.reply(200, { data: [] });

const res = await giteaHttp.getJson<{ data: string[] }>('pagination-example-3', {
paginate: true,
});
const res = await giteaHttp.getJson<{ data: string[] }>(
'pagination-example-3',
{
paginate: true,
}
);
expect(res.body.data).toHaveLength(3);
expect(res.body.data).toEqual(['abc', 'def', 'ghi']);
expect(httpMock.getTrace()).toMatchSnapshot();
Expand Down

0 comments on commit 7a4fbb8

Please sign in to comment.