File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ test("BM25Retriever", async () => {
28
28
} ) ;
29
29
30
30
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?" ;
32
33
const term = "**Version 1:**" ;
33
34
34
35
// Should not throw and should find at least one match
@@ -41,4 +42,4 @@ test("getTermFrequency escapes regex metacharacters", () => {
41
42
expect ( getTermFrequency ( "[yes]" , corpus2 ) ) . toBeGreaterThanOrEqual ( 1 ) ;
42
43
expect ( getTermFrequency ( "*stars*" , corpus2 ) ) . toBeGreaterThanOrEqual ( 1 ) ;
43
44
expect ( getTermFrequency ( "+plus+" , corpus2 ) ) . toBeGreaterThanOrEqual ( 1 ) ;
44
- } ) ;
45
+ } ) ;
You can’t perform that action at this time.
0 commit comments