MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / caseFn

Function caseFn

@commitlint/cz-commitlint/src/Question.test.ts:20–23  ·  view source on GitHub ↗
(input: string | string[], delimiter?: string)

Source from the content-addressed store, hash-verified

18};
19
20const caseFn = (input: string | string[], delimiter?: string) =>
21 (Array.isArray(input) ? input : [input])
22 .map((segment) => segment[0].toUpperCase() + segment.slice(1))
23 .join(delimiter);
24
25describe("name", () => {
26 test("should throw error when name is not a meaningful string", () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected