mediacenterjs icon indicating copy to clipboard operation
mediacenterjs copied to clipboard

Add Tests

Open hoffi opened this issue 10 years ago • 4 comments

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

hoffi avatar Feb 19 '15 19:02 hoffi

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

hoffi avatar Feb 19 '15 19:02 hoffi

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

jansmolders86 avatar Feb 23 '15 08:02 jansmolders86

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

hoffi avatar Feb 23 '15 08:02 hoffi

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

drBenway avatar Sep 02 '16 11:09 drBenway