Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added assertion.name to fail messages

  • Loading branch information...
commit 5d824e982e30c5a60b9c14047ea62be0437d1b2c 1 parent ab4a8d1
Alex Young authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  riot.js
View
2  riot.js
@@ -293,7 +293,7 @@ Riot.Assertion.prototype = {
},
fail: function(message) {
- throw(new Riot.AssertionFailure(message));
+ throw(new Riot.AssertionFailure(this.name + ': ' + message));
},
expected: function() {
Please sign in to comment.
Something went wrong with that request. Please try again.