We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7da65c5 commit 08c192eCopy full SHA for 08c192e
1 file changed
src/lib/string.spec.ts
@@ -127,6 +127,8 @@ describe("string tests", () => {
127
["hello world", "hello world", ""],
128
["hello world", " ", "hello world"],
129
[" hello world", " ", "hello world"],
130
+ ["hello world hello world", "hello world", " hello world"],
131
+ ["hello worldhello world", "hello world", ""],
132
])("left trim", (haystack, needle, expected) => {
133
expect(trimStart(haystack, needle)).toBe(expected);
134
});
@@ -137,6 +139,8 @@ describe("string tests", () => {
137
139
138
140
["hello world ", " ", "hello world"],
141
142
+ ["hello world hello world", "hello world", "hello world "],
143
144
])("right trim", (haystack, needle, expected) => {
145
expect(trimEnd(haystack, needle)).toBe(expected);
146
0 commit comments