summaryrefslogtreecommitdiffstats
path: root/web_src/js/utils.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/utils.test.js')
-rw-r--r--web_src/js/utils.test.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/web_src/js/utils.test.js b/web_src/js/utils.test.js
index 90fb08e8e4..5c17c162af 100644
--- a/web_src/js/utils.test.js
+++ b/web_src/js/utils.test.js
@@ -95,6 +95,9 @@ test('strSubMatch', () => {
expect(strSubMatch('abc', 'z')).toEqual(['abc']);
expect(strSubMatch('abc', 'az')).toEqual(['abc']);
+ expect(strSubMatch('abc', 'aC')).toEqual(['', 'a', 'b', 'c']);
+ expect(strSubMatch('abC', 'ac')).toEqual(['', 'a', 'b', 'C']);
+
expect(strSubMatch('aabbcc', 'abc')).toEqual(['', 'a', 'a', 'b', 'b', 'c', 'c']);
expect(strSubMatch('the/directory', 'hedir')).toEqual(['t', 'he', '/', 'dir', 'ectory']);
});