Skip to content

Commit

Permalink
Update spec/unit/search/search-by-string-array.spec.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Prickett <simon@redislabs.com>
  • Loading branch information
guyroyse and Simon Prickett authored Apr 4, 2023
1 parent e7dc8de commit a96c69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/search/search-by-string-array.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe("Search", () => {
expect(query).toBe("(@someStrings:{\\,\\.\\<\\>\\{\\}\\[\\]\\\"\\'\\:\\;\\|\\!\\@\\#\\$\\%\\^\\&\\(\\)\\-\\+\\=\\~\\ })")
})

it("generates a query with .containsOnOf that escapes all punctuation", () => {
it("generates a query with .containsOneOf that escapes all punctuation", () => {
let query = where.containsOneOf(",.<>{}[]\"':;|", "!@#$%^&()-+=~ ").query
expect(query).toBe("(@someStrings:{\\,\\.\\<\\>\\{\\}\\[\\]\\\"\\'\\:\\;\\||\\!\\@\\#\\$\\%\\^\\&\\(\\)\\-\\+\\=\\~\\ })")
})
Expand Down

0 comments on commit a96c69d

Please sign in to comment.