Skip to content

assert.js, notDeepStrictEqual (line 547) contains confusing language #4714

Answered by Trott
subtly-sms asked this question in Q&A
Discussion options

You must be logged in to vote

Rephrasing this as a question for discussion, does the solid logic behind the code invalidate any potential concerns about messaging?

Answering your question with another question: Is there an actual situation where the message provided to the user is in fact misleading? This sure seems to make a lot of sense to me:

> assert.notDeepStrictEqual(1, 1)
Uncaught:
AssertionError [ERR_ASSERTION]: Expected "actual" not to be strictly deep-equal to: 1

Replies: 0 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Trott
Comment options

Trott Apr 15, 2023
Collaborator

Answer selected by subtly-sms
@subtly-sms
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants