Skip to content

Commit 8d84f39

Browse files
committed
Merge pull request #127 from SamVerschueren/iss123
Throws returns the promise
2 parents b65ff0b + a6eb96d commit 8d84f39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@ Object.keys(assert).forEach(function (el) {
5353
var fn = assert[el].apply(assert, arguments);
5454

5555
if (fn && fn.then) {
56-
fn
56+
return fn
5757
.then(function () {
5858
self._assert();
5959
})
6060
.catch(function (err) {
6161
self.assertError = err;
6262
self._assert();
6363
});
64-
} else {
65-
this._assert();
6664
}
65+
66+
this._assert();
6767
} catch (err) {
6868
this.assertError = err;
6969
this._assert();

0 commit comments

Comments
 (0)