Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2021-04-24 00:45:07 +0300
committerisaacs <i@izs.me>2021-04-24 00:50:06 +0300
commitb61eac693df82c52b955e6c18ec4dcf4cedea8a3 (patch)
treeca2148d148af7ec628fe5aa4086a965b9662a1b4 /test
parent7925cca24543d9e1a8297844b3e53e11057643ef (diff)
@npmcli/config@2.2.0
Partially fixes https://github.com/npm/cli/issues/3130
Diffstat (limited to 'test')
-rw-r--r--test/lib/adduser.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/lib/adduser.js b/test/lib/adduser.js
index 5ce61e127..a66623e66 100644
--- a/test/lib/adduser.js
+++ b/test/lib/adduser.js
@@ -25,7 +25,6 @@ const authDummy = (npm, options) => {
username: 'u',
password: 'p',
email: 'u@npmjs.org',
- 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: 'u@npmjs.org', where: 'user' },
- '//registry.npmjs.org/:always-auth': { value: false, where: 'user' },
+ email: { value: 'u@npmjs.org', where: 'user' },
},
'should set expected user configs'
)