Is it possible to use the Mocha Framework against a model in Sails.js?

mocha.js, sails.js

Solution

I know you asked this awhile ago, but I was searching around myself and there's not much out there at the moment. I figured I'd drop what I found into this answer...

I found some discussion on the sails github and a gist with some example code.

There is also a second discussion with more examples.

Problem

Sails.js uses the MVC pattern for Node.js and I was wondering if Mocha could be hooked up for testing Models.

Original source