소스 검색

RHL-024 refactor(search): add total count to search results in API response

Code_Uwe 3 주 전
부모
커밋
729b92a23e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/api/search/route.test.js

+ 2 - 0
app/api/search/route.test.js

@@ -109,6 +109,7 @@ describe("GET /api/search", () => {
 				},
 			],
 			nextCursor: "abc",
+			total: 1,
 		});
 
 		const req = new Request(
@@ -130,6 +131,7 @@ describe("GET /api/search", () => {
 				},
 			],
 			nextCursor: "abc",
+			total: 1,
 		});
 
 		expect(searchBackend).toHaveBeenCalledTimes(1);