Эх сурвалжийг харах

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

Code_Uwe 3 долоо хоног өмнө
parent
commit
729b92a23e

+ 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);