MCPcopy Create free account
hub / github.com/angular/dev-infra / expectValidationResult

Function expectValidationResult

ng-dev/commit-message/validate.spec.ts:28–34  ·  view source on GitHub ↗
(
  validationResult: ValidateCommitMessageResult,
  valid: boolean,
  errors: string[] = [],
)

Source from the content-addressed store, hash-verified

26const VALID = true;
27
28function 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.

Callers 1

validate.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected