소스 검색

Fix FTS search test expectations for displayPath

Tobi Lutke 5 달 전
부모
커밋
998448d8cf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
   });