Explorar o código

Fix FTS search test expectations for displayPath

Tobi Lutke hai 5 meses
pai
achega
998448d8cf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/store.test.ts

+ 1 - 1
src/store.test.ts

@@ -709,7 +709,7 @@ describe("FTS Search", () => {
     // Both documents contain "fox" in the body now, so we should get 2 results
     expect(results.length).toBe(2);
     // Title/name match should rank higher due to BM25 weights
-    expect(results[0].displayPath).toBe(`qmd://${collectionName}/test/title.md`);
+    expect(results[0].displayPath).toBe("test/title.md");
 
     await cleanupTestDb(store);
   });