Skip to content

Instantly share code, notes, and snippets.

Avatar
🛠️
DevX for Microsoft Graph

Japheth Obala jobala

🛠️
DevX for Microsoft Graph
View GitHub Profile
@jobala
jobala / ultimate-ut-cheat-sheet.md
Created Jun 27, 2016 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon
View ultimate-ut-cheat-sheet.md

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


@jobala
jobala / Logger.js
Last active Mar 5, 2017
A Singleton Logger Class
View Logger.js
let instance = null;
class Logger {
constructor() {
this.time = new Date();
}
log(message) {
console.log(`Loggin this ${message} at ${this.time}`);
You can’t perform that action at this time.