We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ad1eb9 commit a393827Copy full SHA for a393827
features/extra/hooks.js
@@ -125,7 +125,7 @@ module.exports = function() {
125
if (matcher === "be") matcher = "equal";
126
if (matcher === "contain") matcher = "match";
127
this.assert.ok(this.error, "Response does not contain an error");
128
- this.assert[matcher](this.error.message, message);
+ this.assert[matcher](this.error.Message, message);
129
callback();
130
});
131
@@ -150,7 +150,7 @@ module.exports = function() {
150
this.Then(/^I should get the error:$/, function(table, callback) {
151
var err = table.hashes()[0];
152
this.assert.equal(this.error.name, err.name);
153
- this.assert.equal(this.error.message, err.message);
+ this.assert.equal(this.error.Message, err.message);
154
155
156
0 commit comments