Skip to content

Conversation

@obi-el
Copy link
Contributor

@obi-el obi-el commented Mar 2, 2021

test: Added webcrypto tests for HMAC to improve the coverage of the file lib/internal/crypto/mac.js

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Mar 2, 2021
@aduh95
Copy link
Contributor

aduh95 commented Mar 7, 2021

assert.rejects returns a Promise, we must ensure that Promise is not still pending at the end of the test. You need to either add .then(common.mustCall()) after each assert.rejects calls, or put in an async test function as it's done in the same file below.

@obi-el
Copy link
Contributor Author

obi-el commented Mar 7, 2021

assert.rejects returns a Promise, we must ensure that Promise is not still pending at the end of the test. You need to either add .then(common.mustCall()) after each assert.rejects calls, or put in an async test function as it's done in the same file below.

Thanks for the comment, i've made the change

@aduh95 aduh95 added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Mar 7, 2021
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

PR-URL: nodejs#37571
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@aduh95
Copy link
Contributor

aduh95 commented Mar 8, 2021

Landed in 4811210, thanks a lot 🎉

@aduh95 aduh95 merged commit 4811210 into nodejs:master Mar 8, 2021
danielleadams pushed a commit that referenced this pull request Mar 16, 2021
PR-URL: #37571
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants