catdad / grandma

👵 fully programmable stress testing framework
20 stars 4 forks source link

allow returning a promise instead of using the callback #169

Open catdad opened 6 years ago

catdad commented 6 years ago
module.exports = {
  test: function(done) {
    // uses 1 argument, must call `done`
  }
};
module.exports = {
  test: function() {
    // uses no arguments
    // can return a Promise (recommended)
    // or execute synchronously (not recommended)
  }
};