@@ -303,7 +303,9 @@ describe('PostService', () => {
303303
304304 it ( 'should get posts with page 1 and multiple pages' , async ( ) => {
305305 const query = { page : 1 , limit : 5 } ;
306- mockPostRepository . findMany . mockResolvedValue ( buildResult ( Array ( 5 ) . fill ( mockPost ) , 15 , 1 , 5 ) ) ;
306+ mockPostRepository . findMany . mockResolvedValue (
307+ buildResult ( Array ( 5 ) . fill ( mockPost ) , 15 , 1 , 5 ) ,
308+ ) ;
307309 jest . spyOn ( postMappingService , 'mapToResponse' ) . mockReturnValue ( mockPost as any ) ;
308310
309311 const result = await service . getPosts ( query ) ;
@@ -315,7 +317,9 @@ describe('PostService', () => {
315317
316318 it ( 'should get posts with page 2 and multiple pages' , async ( ) => {
317319 const query = { page : 2 , limit : 5 } ;
318- mockPostRepository . findMany . mockResolvedValue ( buildResult ( Array ( 5 ) . fill ( mockPost ) , 15 , 2 , 5 ) ) ;
320+ mockPostRepository . findMany . mockResolvedValue (
321+ buildResult ( Array ( 5 ) . fill ( mockPost ) , 15 , 2 , 5 ) ,
322+ ) ;
319323 jest . spyOn ( postMappingService , 'mapToResponse' ) . mockReturnValue ( mockPost as any ) ;
320324
321325 const result = await service . getPosts ( query ) ;
@@ -327,7 +331,9 @@ describe('PostService', () => {
327331
328332 it ( 'should get posts with last page' , async ( ) => {
329333 const query = { page : 3 , limit : 5 } ;
330- mockPostRepository . findMany . mockResolvedValue ( buildResult ( Array ( 5 ) . fill ( mockPost ) , 15 , 3 , 5 ) ) ;
334+ mockPostRepository . findMany . mockResolvedValue (
335+ buildResult ( Array ( 5 ) . fill ( mockPost ) , 15 , 3 , 5 ) ,
336+ ) ;
331337 jest . spyOn ( postMappingService , 'mapToResponse' ) . mockReturnValue ( mockPost as any ) ;
332338
333339 const result = await service . getPosts ( query ) ;
@@ -363,7 +369,9 @@ describe('PostService', () => {
363369
364370 it ( 'should get posts with page equal to totalPages' , async ( ) => {
365371 const query = { page : 2 , limit : 5 } ;
366- mockPostRepository . findMany . mockResolvedValue ( buildResult ( Array ( 5 ) . fill ( mockPost ) , 10 , 2 , 5 ) ) ;
372+ mockPostRepository . findMany . mockResolvedValue (
373+ buildResult ( Array ( 5 ) . fill ( mockPost ) , 10 , 2 , 5 ) ,
374+ ) ;
367375 jest . spyOn ( postMappingService , 'mapToResponse' ) . mockReturnValue ( mockPost as any ) ;
368376
369377 const result = await service . getPosts ( query ) ;
0 commit comments