Skip to content

Instantly share code, notes, and snippets.

@ChazAttack73
Created December 18, 2015 21:26
Show Gist options
  • Save ChazAttack73/bbec211481e3069cd61e to your computer and use it in GitHub Desktop.
Save ChazAttack73/bbec211481e3069cd61e to your computer and use it in GitHub Desktop.
$git init
$npm init --yes
$npm install -g mocha (only need to do once)
$mkdir test
$touch test/pig_latin.spec.js //mocha looks for a test folder with a file that has the extension spec
//in your pig_latin.spec.js file insert the following
var chai = require('chai');
var expect = chai.expect;
chai.should();
var pigLatin = require('./../index.js');
//In your index file, it would be module.exports = pugLatin;
//RAYS EXAMPLE
https://gist.github.com/sgnl/0b05812495e3e432be4c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment