Skip to content

Commit 5fc0bca

Browse files
committed
x
1 parent 4d26533 commit 5fc0bca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/langchain-community/src/retrievers/tests/bm25.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ test("BM25Retriever", async () => {
2828
});
2929

3030
test("getTermFrequency escapes regex metacharacters", () => {
31-
const corpus = "**Version 1:** What is the country of origin for the person in question?";
31+
const corpus =
32+
"**Version 1:** What is the country of origin for the person in question?";
3233
const term = "**Version 1:**";
3334

3435
// Should not throw and should find at least one match
@@ -41,4 +42,4 @@ test("getTermFrequency escapes regex metacharacters", () => {
4142
expect(getTermFrequency("[yes]", corpus2)).toBeGreaterThanOrEqual(1);
4243
expect(getTermFrequency("*stars*", corpus2)).toBeGreaterThanOrEqual(1);
4344
expect(getTermFrequency("+plus+", corpus2)).toBeGreaterThanOrEqual(1);
44-
});
45+
});

0 commit comments

Comments
 (0)