From 7a4fbb8b7886423b15b61b28f627238ae6244327 Mon Sep 17 00:00:00 2001 From: CirnoT <1447794+CirnoT@users.noreply.github.com> Date: Sat, 27 Jun 2020 09:45:46 +0200 Subject: [PATCH] satisfy linter --- lib/util/http/gitea.spec.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/util/http/gitea.spec.ts b/lib/util/http/gitea.spec.ts index 9c94a1b1d551d9..b24c852bd51ba6 100644 --- a/lib/util/http/gitea.spec.ts +++ b/lib/util/http/gitea.spec.ts @@ -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(); @@ -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();