Skip to content

Conversation

@ruyadorno
Copy link
Contributor

Refactor npm profile and added full test coverage, also fixed a couple of minor issues encountered, in summary:

  • Fixes using --otp config option in npm profile enable-2fa
  • Prevents trying to enable 2fa if no user is logged in
  • Setting email should not require password
  • Add test/lib/profile.js tests
  • Async/await lib/profile.js refactor and more
  • Fixes: v7(tests): profile statusboard#164

@ruyadorno ruyadorno requested a review from a team as a code owner December 17, 2020 17:11
@ruyadorno ruyadorno self-assigned this Dec 17, 2020
@ruyadorno ruyadorno added Release 7.x work is associated with a specific npm 7 release release: next These items should be addressed in the next release labels Dec 17, 2020
@ruyadorno ruyadorno added this to the OSS - Sprint 21 milestone Dec 17, 2020
@ruyadorno ruyadorno force-pushed the refactor-profile-tests branch from 4c3a53e to 640fbc2 Compare December 17, 2020 18:24
@ruyadorno
Copy link
Contributor Author

Thanks for the review @ljharb! 🙌

Copy link
Contributor

@nlf nlf left a comment

Choose a reason for hiding this comment

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

LGTM!

- Fixes using `--otp` config option in `npm profile enable-2fa`
- Prevents trying to enable 2fa if no user is logged in
- Setting email should not require password
- Add `test/lib/profile.js` tests
- Async/await `lib/profile.js` refactor and more

- Fixes: npm/statusboard#164

PR-URL: npm#2373
Credit: @ruyadorno
Close: npm#2373
Reviewed-by: @isaacs
@isaacs isaacs changed the base branch from latest to release/v7.3.0 December 18, 2020 20:02
@isaacs isaacs force-pushed the refactor-profile-tests branch from 640fbc2 to cba3341 Compare December 18, 2020 20:02
@isaacs isaacs merged commit cba3341 into npm:release/v7.3.0 Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: next These items should be addressed in the next release Release 7.x work is associated with a specific npm 7 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v7(tests): profile

5 participants