Skip to content

Instantly share code, notes, and snippets.

View bearcanrun's full-sized avatar
🐻
Where did all the snacks go?

Barry Low bearcanrun

🐻
Where did all the snacks go?
  • Santa Rosa, California, USA
View GitHub Profile
@bearcanrun
bearcanrun / UTF-Sec2Ex.md
Created May 13, 2016 06:15
Unit Testing Fundamentals: Sec. 2 Exercise

strings.js

module.exports = {,
    dashSeparated: function(string) {
        return string.replace(/([A-Z]|[0-9]+)/g, function(match) {
            return '-' + match.toLowerCase();
        });
    }
};
@bearcanrun
bearcanrun / ultimate-ut-cheat-sheet.md
Created September 7, 2016 00:42 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


Keybase proof

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:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.