cristinafsanz / codewars-tdd

Add challenges done

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codewars

Challenges from Codewars, adding testing with Mocha and Chai.

Run tests

npm install
npm run test

Challenges

Credit Card Mask

Disemvowel Trolls

Two to One

How to add testing

  • Create the package.json file:
touch package.json

echo {} > package.json
  • Install mocha:
npm install mocha --save-dev
  • Install chai:
npm install chai --save-dev
  • Add in package.json:
"scripts": {
  "test": "mocha tests/*-test.js"
}
  • Add the test and execute:
npm run test

About

Add challenges done


Languages

Language:JavaScript 100.0%