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
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/auth/saml.js')
-rw-r--r--test/lib/auth/saml.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/lib/auth/saml.js b/test/lib/auth/saml.js
deleted file mode 100644
index 1558e0db8..000000000
--- a/test/lib/auth/saml.js
+++ /dev/null
@@ -1,28 +0,0 @@
-const t = require('tap')
-
-t.test('saml login', (t) => {
- t.plan(3)
- const samlOpts = {
- creds: {},
- registry: 'https://diff-registry.npmjs.org/',
- scope: 'myscope',
- }
-
- const npm = {
- config: {
- set: (key, value) => {
- t.equal(key, 'sso-type', 'should define sso-type')
- t.equal(value, 'saml', 'should set sso-type to saml')
- },
- },
- }
- const saml = t.mock('../../../lib/auth/saml.js', {
- '../../../lib/auth/sso.js': (npm, opts) => {
- t.equal(opts, samlOpts, 'should forward opts')
- },
- })
-
- saml(npm, samlOpts)
-
- t.end()
-})