Skip to content

Commit

Permalink
correct currentAssert in t.resolves/resolveMatch
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Nov 20, 2017
1 parent 70c1cd5 commit b300614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/test.js
Expand Up @@ -1267,7 +1267,7 @@ class Test extends Base {
}

resolves (promise, message, extra) {
this.currentAssert = Test.prototype.rejects
this.currentAssert = Test.prototype.resolves

if (message && typeof message === 'object')
extra = message, message = ''
Expand Down Expand Up @@ -1304,7 +1304,7 @@ class Test extends Base {
}

resolveMatch (promise, wanted, message, extra) {
this.currentAssert = Test.prototype.rejects
this.currentAssert = Test.prototype.resolveMatch

if (message && typeof message === 'object')
extra = message, message = ''
Expand Down

0 comments on commit b300614

Please sign in to comment.