strings.js
module.exports = {,
dashSeparated: function(string) {
return string.replace(/([A-Z]|[0-9]+)/g, function(match) {
return '-' + match.toLowerCase();
});
}
};
strings.js
module.exports = {,
dashSeparated: function(string) {
return string.replace(/([A-Z]|[0-9]+)/g, function(match) {
return '-' + match.toLowerCase();
});
}
};
using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
I hereby claim:
To claim this, I am signing this object: