Created
December 18, 2015 21:26
-
-
Save ChazAttack73/bbec211481e3069cd61e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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