Browse Source

Adding a test for the case where a user has added a number: at the start of the column - could have broken things.

pull/7049/head
mike12345567 4 years ago
parent
commit
2bb0dbdc06
  1. 9
      packages/server/src/api/routes/tests/internalSearch.spec.js

9
packages/server/src/api/routes/tests/internalSearch.spec.js

@ -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…
Cancel
Save