Skip to content

Commit a393827

Browse files
committed
chore: temporarily unblock integ testing by testing error.Message
refs: aws#759
1 parent 1ad1eb9 commit a393827

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/extra/hooks.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ module.exports = function() {
125125
if (matcher === "be") matcher = "equal";
126126
if (matcher === "contain") matcher = "match";
127127
this.assert.ok(this.error, "Response does not contain an error");
128-
this.assert[matcher](this.error.message, message);
128+
this.assert[matcher](this.error.Message, message);
129129
callback();
130130
});
131131

@@ -150,7 +150,7 @@ module.exports = function() {
150150
this.Then(/^I should get the error:$/, function(table, callback) {
151151
var err = table.hashes()[0];
152152
this.assert.equal(this.error.name, err.name);
153-
this.assert.equal(this.error.message, err.message);
153+
this.assert.equal(this.error.Message, err.message);
154154
callback();
155155
});
156156

0 commit comments

Comments
 (0)