Преглед на файлове

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