Function
expectValidationResult
(
validationResult: ValidateCommitMessageResult,
valid: boolean,
errors: string[] = [],
)
Source from the content-addressed store, hash-verified
| 26 | const VALID = true; |
| 27 | |
| 28 | function expectValidationResult( |
| 29 | validationResult: ValidateCommitMessageResult, |
| 30 | valid: boolean, |
| 31 | errors: string[] = [], |
| 32 | ) { |
| 33 | expect(validationResult).toEqual(jasmine.objectContaining({valid, errors})); |
| 34 | } |
| 35 | |
| 36 | // TODO(josephperrott): Clean up tests to test script rather than for |
| 37 | // specific commit messages we want to use. |
Tested by
no test coverage detected