mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix test
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
870e782cab
commit
21a1c1ec27
@ -62,7 +62,7 @@ describe("search store tests", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("escapes string for using in regex", () => {
|
it("escapes string for using in regex", () => {
|
||||||
const regex = searchStore.escapeRegex("some.interesting-query\\#?()[]");
|
const regex = (searchStore as any).escapeRegex("some.interesting-query\\#?()[]");
|
||||||
|
|
||||||
expect(regex).toBe("some\\.interesting\\-query\\\\\\#\\?\\(\\)\\[\\]");
|
expect(regex).toBe("some\\.interesting\\-query\\\\\\#\\?\\(\\)\\[\\]");
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user