mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
api.mocha.coffee into archive directory. we could depend on git history, but I want to keep them publicly visible to developers for now since they may contain valuable test worth porting to our new setup.
- It is a bit verbose
- It needs to be refactored using "async" library. Somehow casper.then() is introducing bugs so I'm not going to use it until I figure out why exactly. Leave it as it is, I'll refactor as it grows.
- It does not use any timeouts along the way, which is a good thing.
- It runs consistently on my side (i.e. always passes).
- So far phantomJS is given new userID every time so app.reset,app.revive is not necessary. I'll add it later.
To run the tests run from terminal: cd test/test2 casperjs test ./casper/ --includes=./lib/helpers.coffee