Skip to content

Commit

Permalink
Don't rely on <object> to satisfy <object> with a messy.StatusLine in…
Browse files Browse the repository at this point in the history
…stance as the RHS

unexpectedjs/unexpected#781
  • Loading branch information
papandreou committed Dec 12, 2020
1 parent 9e004d0 commit d8c1546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/unexpectedMessy.js
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ module.exports = {
return expect(
_.pick(subject, messy.StatusLine.propertyNames),
'to satisfy',
value
_.pick(value, messy.StatusLine.propertyNames)
);
} else {
return expect(subject.toString(), 'to satisfy', value);
Expand Down

0 comments on commit d8c1546

Please sign in to comment.