Przeglądaj źródła

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

Code_Uwe 3 tygodni temu
rodzic
commit
729b92a23e
1 zmienionych plików z 2 dodań i 0 usunięć
  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);