v1
4/24/2021 by andrewbabin -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const afterAll = (str) => str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($1, ofs) => (ofs ? "-" : "") + $1).toLowerCase()
const afterEach = (str) => str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($1, ofs) => (ofs ? "-" : "") + $1.toLowerCase())

const marcs = (str) => str.replace(/((?<=[a-z\d])[A-Z]|(?<=[A-Z\d])[A-Z](?=[a-z]))/g, '-$1').toLowerCase()

let words = ['StackOverflow', 'camelCase', 'alllowercase', 'ALLCAPITALLETTERS', 'CustomXMLParser', 'APIFinder', 'JSONResponseData', 'Person20Address', 'UserAPI20Endpoint'];
delete caserun single casemove downdrag and drop case


ready



words.map(afterAll)
delete caserun single casemove upmove downdrag and drop case


ready



words.map(afterEach)
delete caserun single casemove updrag and drop case


ready



words.map(marcs);
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN