Skip to content

Commit

Permalink
Merge pull request #45 from unexpectedjs/feature/v11Compatiblity
Browse files Browse the repository at this point in the history
Feature/v11 compatiblity
  • Loading branch information
alexjeffburke committed Oct 7, 2018
2 parents beb104e + c13e107 commit 217d8a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bootstrap-unexpected-markdown.js
@@ -1,6 +1,6 @@
/* eslint no-unused-vars: "off" */
/*global unexpected:true, express:true*/
unexpected = require('unexpected');
unexpected = require('unexpected').clone();
express = require('express');
unexpected.output.preferredWidth = 80;
unexpected.installPlugin(require('./lib/unexpectedExpress'));
Expand Down
4 changes: 2 additions & 2 deletions lib/unexpectedExpress.js
Expand Up @@ -424,7 +424,7 @@ module.exports = {
expect.fail({
diff: function (output) {
if (promiseByKey.httpExchange.isRejected()) {
output.append(promiseByKey.httpExchange.reason().getDiff(output).diff);
output.append(promiseByKey.httpExchange.reason().getDiff(output));
} else {
output.appendInspected(context.httpExchange);
}
Expand All @@ -435,7 +435,7 @@ module.exports = {
});
}
});
return { diff: output };
return output;
}
});
}
Expand Down

0 comments on commit 217d8a6

Please sign in to comment.