Skip to content

Commit

Permalink
Merge pull request #23 from sunesimonsen/master
Browse files Browse the repository at this point in the history
Make unexpected-dom forward compatible with unexpected v9
  • Loading branch information
Munter committed Jul 1, 2015
2 parents 2c88cc5 + 77c5128 commit afb6859
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function diffNodeLists(actual, expected, output, diff, inspect, equal) {
module.exports = {
name: 'unexpected-dom',
installInto: function (expect) {
expect.output.installPlugin(require('magicpen-prism'));
expect.installPlugin(require('magicpen-prism'));
var topLevelExpect = expect;
expect.addType({
name: 'DOMNode',
Expand Down Expand Up @@ -618,7 +618,7 @@ module.exports = {
.sp()
.annotationBlock(function () {
if (promise && typeof expectedValueByAttributeName[attributeName] !== 'undefined') {
this.append(promise.reason().getErrorMessage());
this.append(promise.reason().getErrorMessage(this));
} else {
// onlyAttributes === true
this.error('should be removed');
Expand Down Expand Up @@ -668,7 +668,7 @@ module.exports = {
});
if (childrenError) {
output.sp().annotationBlock(function () {
this.append(childrenError.getErrorMessage());
this.append(childrenError.getErrorMessage(this));
if (childrenDiff && childrenDiff.diff) {
this.nl(2).append(childrenDiff.diff);
}
Expand Down

0 comments on commit afb6859

Please sign in to comment.