Ghost/ghost/core/test/e2e-browser/utils/helpers.js
2023-01-11 11:35:55 +04:00

14 lines
238 B
JavaScript

let uniqueId = 0;
const getUniqueName = (prefix = 'id') => {
uniqueId += 1;
return `${prefix} ${uniqueId}`;
};
const getSlug = str => str.toLowerCase().split(' ').join('-');
module.exports = {
getUniqueName,
getSlug
};