fix: Missing context in search results (#6549)

closes #6548
This commit is contained in:
Tom Moor
2024-02-16 09:34:05 -08:00
committed by GitHub
parent 561606f6f4
commit 69eb7b9db4
2 changed files with 7 additions and 4 deletions

View File

@@ -186,6 +186,7 @@ describe("SearchHelper", () => {
});
const { results } = await SearchHelper.searchForUser(user, "test");
expect(results.length).toBe(1);
expect(results[0].ranking).toBeTruthy();
expect(results[0].document?.id).toBe(document.id);
});