Skip to content

Instantly share code, notes, and snippets.

Joshua Davis a11smiles

Block or report user

Report or block a11smiles

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:2f3371b1f16696cad1685c284b281c82

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 Mar 30, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.