Skip to content

Instantly share code, notes, and snippets.

View dschinkel's full-sized avatar
💻

Dave Schinkel dschinkel

💻
View GitHub Profile
@dschinkel
dschinkel / args.js
Created October 2, 2018 04:33 — forked from ericelliott/args.js
Polymorphic functions and multiple dispatch in JavaScript
var args = [].slice.call(arguments, 0);
@dschinkel
dschinkel / chai-expect.md
Created April 16, 2017 06:24 — forked from patocallaghan/chai-expect.md
Chai Expect Assertion library examples. From http://chaijs.com/api/bdd/ #chai #javascript #expect

##Chai Expect

##Language Chains

  • to
  • be
  • been
  • is
  • that
  • and
  • have
@dschinkel
dschinkel / ultimate-ut-cheat-sheet.md
Created April 7, 2017 05:13 — 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