1 var test = require('tap').test
2 var common = require('../common-tap.js')
3 var mr = require('npm-registry-mock')
6 test('setup', function (t) {
7 mr({port: common.port, throwOnUnmatched: true}, function (err, s) {
8 t.ifError(err, 'registry mocked successfully')
14 test('scoped package names not mangled on error with non-root registry', function (t) {
23 function (er, code, stdout, stderr) {
24 t.ifError(er, 'correctly handled 404')
25 t.equal(code, 1, 'exited with error')
26 t.match(stderr, /404 Not found/, 'should notify the sort of error as a 404')
27 t.match(stderr, /@scope\/foo/, 'should have package name in error')
33 test('cleanup', function (t) {