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