Pārlūkot izejas kodu

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

Code_Uwe 3 nedēļas atpakaļ
vecāks
revīzija
729b92a23e
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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);