Particularly around behavior driven
# suitescript
c
Particularly around behavior driven
c
MochaJS style is like this ex:
Copy code
describe('User', function() {
  describe('#save()', function() {
    it('should save without error', function(done) {
      var user = new User('Luna');
      user.save(function(err) {
        if (err) done(err);
        else done();
      });
    });
  });
});
Can put your behavioral use cases per "it should/should not..."
The main thing is just separate your logic to reduce mocking IMO.