Skip to content

Conversation

@scottty881
Copy link
Contributor

open to suggestions on other ways of printing both the actual and expected value on a failed equals assertion, this is a shot in the dark

lib/index.js Outdated
: (a, b) => Hoek.deepEqual(a, b, settings);

return this.assert(compare(this._ref, value), 'equal specified value', this._ref, value);
return this.assert(compare(this._ref, value), `equal specified value: ${JSON.stringify(value)}`, this._ref, value);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should use util.inspect() instead of JSON.stringify().

@cjihrig
Copy link
Contributor

cjihrig commented Jun 1, 2017

I just updated code to work on Node 8, so you should rebase too.

@cjihrig cjihrig self-assigned this Jun 1, 2017
@cjihrig cjihrig added the feature New functionality or improvement label Jun 1, 2017
@cjihrig cjihrig added this to the 4.1.0 milestone Jun 1, 2017
@cjihrig
Copy link
Contributor

cjihrig commented Jun 1, 2017

Landed in 38df73b. Thanks!

@cjihrig cjihrig closed this Jun 1, 2017
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature New functionality or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants