1
0
Fork 0
mirror of synced 2024-08-18 11:31:28 +12:00

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:
mike12345567 2022-08-08 19:21:06 +01:00
parent 76f0c4a289
commit fda15d3bd8

View file

@ -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)
})
})