Skip to content

Instantly share code, notes, and snippets.

View a11smiles's full-sized avatar

Joshua Davis a11smiles

View GitHub Profile

Adding Sinon to WebPack

  • Open your project (if you're using WebPack, obviously)

  • npm install sinon --save-dev

  • You should now have Sinon in your node modules and listed in your package.json file

  • In your tests, require Sinon: var sinon = require('sinon'); or import * as sinon from 'sinon';

@a11smiles
a11smiles / 0_reuse_code.js
Created March 30, 2017 00:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console