ui/client/features/tests/domain/TestNames
Pure (DOMAIN-001): turning what a person types into a test file name.
Cockpit client (features), next. Source: ui/client/features/tests/domain/TestNames.ts.
Functions#
clonePath()#
clonePath(
feature,name):string
Defined in: ui/client/features/tests/domain/TestNames.ts:18
Where the clone will be saved, exactly as the server derives it.
Parameters#
feature
string
name
string
Returns#
string
defaultCloneName()#
defaultCloneName(
title):string
Defined in: ui/client/features/tests/domain/TestNames.ts:21
The default name offered in the dialog.
Parameters#
title
string
Returns#
string
slugify()#
slugify(
text):string
Defined in: ui/client/features/tests/domain/TestNames.ts:6
"Refund over £50 goes to manual review" -> "refund-over-50-goes-to-manual-review". '' when nothing usable is left.
Parameters#
text
string
Returns#
string