From 52663164031885612657f38c76e6d8d1bfffbcd8 Mon Sep 17 00:00:00 2001 From: miensoap Date: Sat, 30 Nov 2024 22:39:31 +0900 Subject: [PATCH] =?UTF-8?q?test:=20=EC=BF=BC=EB=A6=AC=20=EB=B3=80=EC=88=98?= =?UTF-8?q?=20=EC=B6=94=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/test/place/place.controller.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/test/place/place.controller.test.ts b/backend/test/place/place.controller.test.ts index d724caf5..a2f9238d 100644 --- a/backend/test/place/place.controller.test.ts +++ b/backend/test/place/place.controller.test.ts @@ -89,11 +89,12 @@ describe('PlaceController', () => { describe('장소 검색', () => { it('페이지, 사이즈를 설정하지 않았을 경우 기본값을 사용하여 장소를 반환한다', async () => { - const serviceResult = await placeService.getPlaces('test', 1, 5); + const query = 'test'; + const serviceResult = await placeService.getPlaces(query, 1, 5); const response = await request(app.getHttpServer()) .get('/places') - .query({ query: 'test' }) + .query({ query }) .expect(200); expect(response.body).toEqual(serviceResult); @@ -113,7 +114,8 @@ describe('PlaceController', () => { await placeService.addPlace(defaultPlace1); await placeService.addPlace(defaultPlace2); - const serviceResult = await placeService.getPlaces('test', 2, 1); + const query = 'test'; + const serviceResult = await placeService.getPlaces(query, 2, 1); const response = await request(app.getHttpServer()) .get('/places')