Skip to content

Instantly share code, notes, and snippets.

@kaeff
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaeff/63c4cfaae5e3dad4ec8b to your computer and use it in GitHub Desktop.
Save kaeff/63c4cfaae5e3dad4ec8b to your computer and use it in GitHub Desktop.
Global Assert
global.assert = require('assert');
{
"name": "global_assert",
"version": "0.0.1",
"description": "Mocha helper to get rid of `var assert = require('assert');` in every test file",
"main": "global_assert.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@gist.github.com:/63c4cfaae5e3dad4ec8b.git"
},
"author": "kaeff",
"license": "MIT"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment