(help: string, expected: string)
| 1066 | } |
| 1067 | |
| 1068 | function assertScriptName(help: string, expected: string): void { |
| 1069 | for (const name of scriptNames) { |
| 1070 | const pattern = new RegExp(`^\\s+${name} --slim\\s`, 'm'); |
| 1071 | if (name === expected) { |
| 1072 | assert.match(help, pattern); |
| 1073 | } else { |
| 1074 | assert.doesNotMatch(help, pattern); |
| 1075 | } |
| 1076 | } |
| 1077 | } |
| 1078 | |
| 1079 | const defaultCases: Array<{ |
| 1080 | label: string; |