We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39f1c7a commit 032641cCopy full SHA for 032641c
src/utils/string.spec.ts
@@ -78,4 +78,19 @@ describe('groupByCommonHead', () => {
78
foo: { ' bar': {}, bar: {} },
79
});
80
81
+
82
+ it('is case-sensitive with string heads', () => {
83
+ const words = ['Foo', 'foo'];
84
+ expect(groupByCommonHead(words)).toEqual({
85
+ Foo: {},
86
+ foo: {},
87
+ });
88
89
90
+ it('is case-sensitive with string tails', () => {
91
+ const words = ['foo', 'foO'];
92
93
+ fo: { o: {}, O: {} },
94
95
96
0 commit comments