jansmolders86 / mediacenterjs

A HTML/CSS/Javascript (NodeJS) based Media center
http://mediacenterjs.com
1.29k stars 243 forks source link

Add Tests #190

Open hoffi opened 9 years ago

hoffi commented 9 years ago

Add Tests to the project to ensure things like Title-Cleaner for example don't get broken.

hoffi commented 9 years ago

I've already created a branch tests where i have added a first test for the title-cleaner and give a set of bad filenames and then expect specific results: ff0324457f73184c70cd1b4f852669058dbc1542

jansmolders86 commented 9 years ago

Ow wauw this is quite awesome! you use mocha to run these tests I see?

hoffi commented 9 years ago

Yes i have already used Mocha in my other projects and i like it :)

drBenway commented 8 years ago

maybe add something like: "test": "node nodemodules/mocha/bin/mocha spec/*/_.spec.js" to the package.json file so we can just npm run test and trigger Mocha