Skip to content

Instantly share code, notes, and snippets.

View faksam's full-sized avatar
🐰
Working from home

Samuel Mayowa Fakunle faksam

🐰
Working from home
View GitHub Profile
@faksam
faksam / mocha-guide-to-testing.js
Created April 30, 2018 19:41 — forked from samwize/mocha-guide-to-testing.js
Explain Mocha's testing framework - describe(), it() and before()/etc hooks
// # Mocha Guide to Testing
// Objective is to explain describe(), it(), and before()/etc hooks
// 1. `describe()` is merely for grouping, which you can nest as deep
// 2. `it()` is a test case
// 3. `before()`, `beforeEach()`, `after()`, `afterEach()` are hooks to run
// before/after first/each it() or describe().
//
// Which means, `before()` is run before first it()/describe()
@faksam
faksam / ultimate-ut-cheat-sheet.md
Created April 30, 2018 19:39 — 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


git rm -r --cached .
git add .
git commit -m "fixing .gitignore"
@faksam
faksam / README-Template.md
Created August 1, 2017 10:38 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites