Skip to content

update test messages for assert.strictEqual#15995

Closed
tisAliG wants to merge 2 commits into
nodejs:masterfrom
tisAliG:master
Closed

update test messages for assert.strictEqual#15995
tisAliG wants to merge 2 commits into
nodejs:masterfrom
tisAliG:master

Conversation

@tisAliG
Copy link
Copy Markdown
Contributor

@tisAliG tisAliG commented Oct 6, 2017

Checklist
Affected core subsystem(s)

test-crypto

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Oct 6, 2017
@tisAliG tisAliG force-pushed the master branch 2 times, most recently from dcc461e to baf7373 Compare October 6, 2017 18:36
@mscdex mscdex added the crypto Issues and PRs related to the crypto subsystem. label Oct 6, 2017
txt += decipher.final('utf8');

assert.strictEqual(txt, plaintext, 'encryption and decryption');
assert.strictEqual(txt, plaintext, `${txt} is encrypted, ${plaintext} is unencrypted`);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I personally would prefer to just remove the error message overall instead of using the individual ones in all these cases. The reason is that it could theoretically be a different case than the description value (the test should pass and we do not know the real reason why the test would not pass).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree with @BridgeAR. I think it's better to just remove the custom messages (third argument) here and use the default one.

@Trott Trott added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Oct 7, 2017
@joyeecheung
Copy link
Copy Markdown
Member

Landed in f4cab35, thank you for the contribution!

joyeecheung pushed a commit that referenced this pull request Oct 14, 2017
Remove test messages for assert.strictEqual,
as the default messages are a better option.

PR-URL: #15995
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
addaleax pushed a commit to ayojs/ayo that referenced this pull request Oct 15, 2017
Remove test messages for assert.strictEqual,
as the default messages are a better option.

PR-URL: nodejs/node#15995
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
targos pushed a commit that referenced this pull request Oct 18, 2017
Remove test messages for assert.strictEqual,
as the default messages are a better option.

PR-URL: #15995
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
MylesBorins pushed a commit that referenced this pull request Nov 16, 2017
Remove test messages for assert.strictEqual,
as the default messages are a better option.

PR-URL: #15995
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
@MylesBorins MylesBorins mentioned this pull request Nov 21, 2017
MylesBorins pushed a commit that referenced this pull request Nov 21, 2017
Remove test messages for assert.strictEqual,
as the default messages are a better option.

PR-URL: #15995
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
MylesBorins pushed a commit that referenced this pull request Nov 28, 2017
Remove test messages for assert.strictEqual,
as the default messages are a better option.

PR-URL: #15995
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. crypto Issues and PRs related to the crypto subsystem. test Issues and PRs related to the tests.

10 participants