UNPKG

@grafana/alerting

Version:

Grafana Alerting Library – Build vertical integrations on top of the industry-leading alerting solution

13 lines (10 loc) 664 B
import { faker } from '@faker-js/faker'; import { upperFirst } from 'lodash'; "use strict"; const DEFAULT_NAMESPACE = "default"; const getAPIBaseURLForMocks = (group, version, path = "/") => `/apis/${group}/${version}/namespaces/default${path}`; const generateTitle = () => upperFirst(`${faker.word.adjective()} ${faker.animal.type()}`); const generateResourceVersion = () => faker.string.alphanumeric({ length: 16, casing: "lower" }); const generateUID = () => faker.string.alphanumeric({ length: 32, casing: "mixed" }); export { DEFAULT_NAMESPACE, generateResourceVersion, generateTitle, generateUID, getAPIBaseURLForMocks }; //# sourceMappingURL=util.mjs.map