Skip to content

Instantly share code, notes, and snippets.

View jobala's full-sized avatar
🛠️
always be building

Japheth Obala jobala

🛠️
always be building
View GitHub Profile
@jobala
jobala / Logger.js
Last active March 5, 2017 08:56
A Singleton Logger Class
let instance = null;
class Logger {
constructor() {
this.time = new Date();
}
log(message) {
console.log(`Loggin this ${message} at ${this.time}`);
@jobala
jobala / ultimate-ut-cheat-sheet.md
Created June 27, 2016 07:18 — 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