(scope: string, header: string)
| 100 | |
| 101 | it('should fail when scope is invalid', async () => { |
| 102 | const errorMessageFor = (scope: string, header: string) => |
| 103 | `'${scope}' is not an allowed scope.\n => SCOPES: ${SCOPES}`; |
| 104 | |
| 105 | expectValidationResult(await validateCommitMessage('fix(Compiler): something'), INVALID, [ |
| 106 | errorMessageFor('Compiler', 'fix(Compiler): something'), |