-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partially fixes #3130
- Loading branch information
Showing
5 changed files
with
69 additions
and
84 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,6 @@ const authDummy = (npm, options) => { | |
username: 'u', | ||
password: 'p', | ||
email: '[email protected]', | ||
alwaysAuth: false, | ||
}, | ||
}) | ||
} | ||
|
@@ -97,12 +96,15 @@ t.test('simple login', (t) => { | |
_token: 'user', | ||
_password: 'user', | ||
username: 'user', | ||
email: 'user', | ||
_auth: 'user', | ||
_authtoken: 'user', | ||
'-authtoken': 'user', | ||
_authToken: 'user', | ||
'//registry.npmjs.org/:-authtoken': undefined, | ||
'//registry.npmjs.org/:-authtoken': 'user', | ||
'//registry.npmjs.org/:_authToken': 'user', | ||
'//registry.npmjs.org/:_authtoken': 'user', | ||
'//registry.npmjs.org/:always-auth': 'user', | ||
'//registry.npmjs.org/:email': 'user', | ||
}, | ||
'should delete token in user config' | ||
) | ||
|
@@ -112,8 +114,7 @@ t.test('simple login', (t) => { | |
{ | ||
'//registry.npmjs.org/:_password': { value: 'cA==', where: 'user' }, | ||
'//registry.npmjs.org/:username': { value: 'u', where: 'user' }, | ||
'//registry.npmjs.org/:email': { value: '[email protected]', where: 'user' }, | ||
'//registry.npmjs.org/:always-auth': { value: false, where: 'user' }, | ||
email: { value: '[email protected]', where: 'user' }, | ||
}, | ||
'should set expected user configs' | ||
) | ||
|