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

Function errorMessageFor

ng-dev/commit-message/validate.spec.ts:102–103  ·  view source on GitHub ↗
(scope: string, header: string)

Source from the content-addressed store, hash-verified

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'),

Callers 1

validate.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected