diff options
author | Gar <gar+gh@danger.computer> | 2022-09-21 23:46:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-21 23:46:35 +0300 |
commit | 66ed58454418dd69c4cd8196ad8499e73f7e46e1 (patch) | |
tree | 9d7ddfb14b8e777950661d5093ec16d197efaa0c /test | |
parent | 0d90a011fff411c878ba4b44582f14ef7dbdceb1 (diff) |
feat: default auth-type to web (#5551)
BREAKING CHANGE: the default `auth-type` config value is now `web`
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/commands/adduser.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/commands/adduser.js b/test/lib/commands/adduser.js index 4ff65e57f..04fe8dc8c 100644 --- a/test/lib/commands/adduser.js +++ b/test/lib/commands/adduser.js @@ -25,6 +25,7 @@ t.test('legacy', async t => { 'process.stdout': new stream.PassThrough(), // to quiet readline }, { replace: true }) const { npm, home } = await loadMockNpm(t, { + config: { 'auth-type': 'legacy' }, homeDir: { // These all get cleaned up by config.setCredentialsByURI '.npmrc': [ @@ -72,6 +73,7 @@ t.test('legacy', async t => { }, { replace: true }) const { npm, home } = await loadMockNpm(t, { config: { + 'auth-type': 'legacy', scope: '@myscope', }, }) @@ -109,6 +111,7 @@ t.test('legacy', async t => { '.npmrc': '@myscope:registry=https://diff-registry.npmjs.org', }, config: { + 'auth-type': 'legacy', scope: '@myscope', }, }) @@ -142,6 +145,7 @@ t.test('legacy', async t => { 'process.stdout': new stream.PassThrough(), // to quiet readline }, { replace: true }) const { npm } = await loadMockNpm(t, { + config: { 'auth-type': 'legacy' }, homeDir: { '.npmrc': {}, }, |