SpiderOak/SpiderOakMobileClient — pull request #18 by devgeeks (2013-02-07 03:40:50+00:00)
Title: Convert tests to mocha / chai

### Added mocha / chai alongside jasmine (jasmine to be removed once conversions are complete).

**Changes to grunt commands:**

- `grunt test` now runs mocha with the full `spec` reporter for pretty test report goodness
- `grunt watch`, `grunt debug_*` and the default `grunt` now run mocha with the minimalist `dot` reporter.

I have also yet to add the sinon-chai plugin, so the sinon calls are still a bit less descriptive than they could be.

NOTE: I have been avoiding the prettier `expect(foo).to.be.ok` style assertions in favour of `expect(foo)to.equal(true)` as my linter freaks out with "Expected an assignment or function call and instead saw an expression" ;)

I suppose we could do `return expect(foo).to.be.ok` or `var assertion = expect(foo).to.be.ok`, but that looks even weirder than `.to.equal(true)` 0_o

@kenmanheimer - I managed to resist the urge to convert all of existing tests, heh. I did the `index.js` and all of the `models/*.js` but left you the `collections/*.js` and `views/*.js`. It's really straight forward, I think you'll like it.

//cc @merickson