diff options
author | isaacs <i@izs.me> | 2021-04-24 00:45:07 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2021-04-24 00:50:06 +0300 |
commit | b61eac693df82c52b955e6c18ec4dcf4cedea8a3 (patch) | |
tree | ca2148d148af7ec628fe5aa4086a965b9662a1b4 /test | |
parent | 7925cca24543d9e1a8297844b3e53e11057643ef (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.js | 11 |
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' ) |