test-fns
Version:
write usecase driven tests systematically for simpler, safer, and more readable code
12 lines (11 loc) • 366 B
TypeScript
/**
* generates a random uuid namespaced for tests, pattern `beef****-****-****-****-********beef`
*
* usecase
* - produces a uuid that can be clearly identified as one produced for tests
*/
export declare const genTestUuid: () => string;
/**
* decides whether a uuid is namespaced for tests
*/
export declare const isTestUuid: (userUuid: string) => boolean;