Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayzen committed May 28, 2021
1 parent bec18a9 commit 3b7edd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/reporters/base.spec.js
Expand Up @@ -366,9 +366,10 @@ describe('Base reporter', function() {
expect(errOut, 'to be', '1) test title:\n Error\n foo\n bar');
});

it("should use 'inspect' if err include 'inspect' parameter", function() {
it("should use 'inspect' if 'inspect' and 'message' are set", function() {
var err = new Error('test');
err.showDiff = false;
err.message = 'error message';
err.inspect = function() {
return 'Inspect Error';
};
Expand Down

0 comments on commit 3b7edd9

Please sign in to comment.