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:
authorNathan Fritz <fritzy@github.com>2022-07-12 02:47:40 +0300
committerGar <wraithgar@github.com>2022-07-12 21:34:35 +0300
commite58f02f5e8263bf86ae1f07a863098d445e6d0cd (patch)
tree333aba1e632c599b16ad37b1eff3d845d96bae5f /test
parentc6c4ba3b62e2a0896a48329f4c7e13d9e44a2f80 (diff)
feat: warn on config --auth-type=sso/saml/oauth, undeprecate --auth-type
Diffstat (limited to 'test')
-rw-r--r--test/lib/commands/adduser.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lib/commands/adduser.js b/test/lib/commands/adduser.js
index ca07199b2..7c7079394 100644
--- a/test/lib/commands/adduser.js
+++ b/test/lib/commands/adduser.js
@@ -75,6 +75,15 @@ t.test('bad auth type', async t => {
})
})
+t.test('auth-type sso warning', async t => {
+ const { logs } = await loadMockNpm(t, {
+ config: {
+ 'auth-type': 'sso',
+ },
+ })
+ t.matchSnapshot({ warn: logs.warn }, 'warning')
+})
+
t.test('scoped login', async t => {
const stdin = new stream.PassThrough()
stdin.write('test-user\n')