Skip to content

Commit

Permalink
createStandardErrorMessage: Support providing the subject as an alrea…
Browse files Browse the repository at this point in the history
…dy prepared MagicPen instance.
  • Loading branch information
papandreou committed Apr 24, 2015
1 parent 5fcf311 commit 8872fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/createStandardErrorMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = function createStandardErrorMessage(expect, subject, testDescri

var preamble = 'expected';

var subjectOutput = expect.inspect(subject);
var subjectOutput = subject && subject.isMagicPen ? subject : expect.inspect(subject);

var argsOutput = output.clone();
if (args.length > 0) {
Expand Down

0 comments on commit 8872fe4

Please sign in to comment.