File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ describe('utils/findMatches', () => {
3939} ) ;
4040
4141describe ( 'utils/removeWildCardEntries' , ( ) => {
42- it ( 'should move wild card entries' , ( ) => {
42+ it ( 'should remove wild card entries' , ( ) => {
4343 const strings = [
4444 'string_1' ,
4545 'string_2' ,
@@ -52,4 +52,9 @@ describe('utils/removeWildCardEntries', () => {
5252 ] ;
5353 expect ( removeWildCardStrings ( strings ) ) . toStrictEqual ( [ 'string_1' , 'string_2' , 'string_3' ] ) ;
5454 } ) ;
55+
56+ it ( 'should return empty array if the strings list is empty' , ( ) => {
57+ const strings = [ ] ;
58+ expect ( removeWildCardStrings ( strings ) ) . toStrictEqual ( [ ] ) ;
59+ } ) ;
5560} ) ;
Original file line number Diff line number Diff line change @@ -130,4 +130,4 @@ export function removeWildCardStrings(strings: string[]) {
130130 }
131131
132132 return strings . filter ( ( str : string ) => ! ( str . includes ( '*' ) || str . startsWith ( '!' ) ) ) ;
133- }
133+ }
You can’t perform that action at this time.
0 commit comments