vowsjs/api-easy

afters

Opened this issue · 0 comments

Description

Just as there is a befores implementation it would be nice to have an afters function as I am trying to wrap the library in a promise and resolve it at the end of the function.

Code example

return new Promise(function(resolve, reject) {
    suite.discuss('When authenticating')
        .discuss('with no username or password')
        .after(resolve) // this part 
        .next();
});