• Home
  • Raw
  • Download

Lines Matching +full:no +full:- +full:err

4 var mr = require('npm-registry-mock')
7 var common = require('../common-tap.js')
21 remaining--
42 server.post('/-/v1/login', 'invalid').reply(404, 'not found')
43 server.put('/-/user/org.couchdb.user:u', 'auth')
52 '--registry', common.registry,
53 '--loglevel', 'silent',
54 '--userconfig', outfile
57 function (err, code) { argument
59 t.notOk(err, 'no error output')
61 t.like(config, /:always-auth=false/, 'always-auth is scoped and false (by default)')
63 rimraf(outfile, function (err) { argument
64 t.ifError(err, 'removed config file OK')
74 test('npm login --scope <scope> uses <scope>:registry as its URI', function (t) {
81 '--userconfig', outfile,
87 function (err, code) { argument
89 t.notOk(err, 'no error output')
95 '--loglevel', 'silent',
96 '--userconfig', outfile,
97 '--scope', scope
100 function (err, code) { argument
102 t.notOk(err, 'no error output')
106 rimraf(outfile, function (err) { argument
107 t.ifError(err, 'removed config file OK')
118 test('npm login --scope <scope> makes sure <scope> is prefixed by an @', function (t) {
125 '--userconfig', outfile,
132 function (err, code) { argument
134 t.notOk(err, 'no error output')
140 '--loglevel', 'silent',
141 '--userconfig', outfile,
142 '--scope', scope
145 function (err, code) { argument
147 t.notOk(err, 'no error output')
151 rimraf(outfile, function (err) { argument
152 t.ifError(err, 'removed config file OK')
163 test('npm login --scope <scope> --registry <registry> uses <registry> as its URI', function (t) {
167 '--userconfig', outfile,
174 function (err, code) { argument
176 t.notOk(err, 'no error output')
182 '--registry', common.registry,
183 '--loglevel', 'silent',
184 '--userconfig', outfile,
185 '--scope', scope
188 function (err, code) { argument
190 t.notOk(err, 'no error output')
194 rimraf(outfile, function (err) { argument
195 t.ifError(err, 'removed config file OK')
206 test('npm login --always-auth', function (t) {
211 '--registry', common.registry,
212 '--loglevel', 'silent',
213 '--userconfig', outfile,
214 '--always-auth'
217 function (err, code) { argument
219 t.notOk(err, 'no error output')
221 t.like(config, /:always-auth=true/, 'always-auth is scoped and true')
223 rimraf(outfile, function (err) { argument
224 t.ifError(err, 'removed config file OK')
234 test('npm login --no-always-auth', function (t) {
239 '--registry', common.registry,
240 '--loglevel', 'silent',
241 '--userconfig', outfile,
242 '--no-always-auth'
245 function (err, code) { argument
247 t.notOk(err, 'no error output')
249 t.like(config, /:always-auth=false/, 'always-auth is scoped and false')
251 rimraf(outfile, function (err) { argument
252 t.ifError(err, 'removed config file OK')