Test my bootcamp

Write unit tests for the list of functions below you wrote in the bootcamp.

Create a folder in your projects folder called bootcamp-terminal-tests. Write all your tests in a sub-folder called test in there. Commit it to github using a repository called bootcamp-terminal-tests.

Write tests for:

Put each function in a seperate file called <THE FUNCTION NAME>.js and make it a module using the module.exports statement.

Create a module like this:

module.exports = function(){
    //you functions logic here
}

Create a corresponding test in a test folder called <THE FUNCTION NAME>.test.js for each function. Import the function to be tested using the require statement.

var functionToTest = require('../function-to-test');

Commit to Github

Add your code to git and commit to GitHub

Run your tests with Travis

Configure TravisCI to run your test every time you commit changes to GitHub. Add a Travis Badge to your project in GitHub.

To get going with Travis do this:

language: node_js
node_js:
  - "your node version here"

You can read more about NodeJS and Travis configuration on the Travis website.