Adding a test for the case where a user has added a number: at the start of the column - could have broken things.
This commit is contained in:
parent
76f0c4a289
commit
fda15d3bd8
|
@ -145,4 +145,13 @@ describe("internal search", () => {
|
|||
}, PARAMS)
|
||||
checkLucene(response, `column:"a" OR column:"b" OR column:"c"`, PARAMS)
|
||||
})
|
||||
|
||||
it("check a weird case for lucene building", async () => {
|
||||
const response = await search.paginatedSearch({
|
||||
equal: {
|
||||
"1:1:column": "a",
|
||||
},
|
||||
}, PARAMS)
|
||||
checkLucene(response, `*:* AND 1\\:column:"a"`, PARAMS)
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue