Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Renamed no-proxy into noproxy.

  • Loading branch information...
commit 4561cca434462af20fec18000957cedaef7556be 1 parent 04acc40
@vvision authored
View
BIN  test/mocha/no-proxy.tar.gz
Binary file not shown
View
28 test/mocha/no_proxy_test.js
@@ -26,8 +26,8 @@ describe('No-Proxy Tests', function () {
})
before(function (done) {
- //Save no-proxy configuration
- var getNoProxy = spawn(node, [npm, 'config', 'get', 'no-proxy']
+ //Save noproxy configuration
+ var getNoProxy = spawn(node, [npm, 'config', 'get', 'noproxy']
, ['ignore', 'stream', 'ignore'])
getNoProxy.stdout.on('data', function (data) {
noProxySave = data.toString().trim()
@@ -47,7 +47,7 @@ describe('No-Proxy Tests', function () {
//Without Proxy, send file no-proxy.tar.gz back
server.get('/test', function (req, res) {
- res.sendfile('no-proxy.tar.gz')
+ res.sendfile('noproxy.tar.gz')
})
//With Proxy, send file proxy.tar.gz back
@@ -119,8 +119,8 @@ describe('No-Proxy Tests', function () {
})
after(function (done) {
- //Set no-proxy configuration back
- var set = spawn(node, [npm, 'config', 'set', 'no-proxy='+noProxySave]
+ //Set noproxy configuration back
+ var set = spawn(node, [npm, 'config', 'set', 'noproxy='+noProxySave]
, { stdio: 'ignore' })
set.on('exit', function (code) {
done()
@@ -140,10 +140,10 @@ describe('No-Proxy Tests', function () {
done()
})
- it('Use npm with no_proxy', function (done) {
+ it('Use npm with noproxy', function (done) {
this.timeout(5000)
//Set the no-proxy configuration
- var noProxy = spawn(node, [npm, 'config', 'set', 'no-proxy=localhost']
+ var noProxy = spawn(node, [npm, 'config', 'set', 'noproxy=localhost']
, { stdio: 'ignore' })
noProxy.on('exit', function (code) {
//Install from localhost:80/test
@@ -160,17 +160,17 @@ describe('No-Proxy Tests', function () {
})
})
- it('Use npm with proxy set and no-proxy null', function (done) {
+ it('Use npm with proxy set and noproxy null', function (done) {
this.timeout(10000)
- //Set the no-proxy configuration to null
- var noProxy = spawn(node, [npm, 'config', 'set', 'no-proxy=null']
+ //Set the noproxy configuration to null
+ var noProxy = spawn(node, [npm, 'config', 'set', 'noproxy=null']
, { stdio: 'ignore' })
noProxy.on('exit', function (code) {
//Install from localhost:80/test using proxy
var child = spawn(node, [npm, 'install', 'http://localhost:80/test']
, { stdio: 'ignore' })
child.on('exit', function (code) {
- console.log('Child process exited with exit code '+code)
+ //console.log('Child process exited with exit code '+code)
//Let's check if the package directory exists in node_modules
fs.exists('../../node_modules/test-proxy-test', function (exists) {
assert.equal(exists, true)
@@ -218,11 +218,11 @@ describe('Check test directories removal', function () {
})
})
-describe('Check that no-proxy and proxy have there initial value', function () {
+describe('Check that noproxy and proxy have there initial value', function () {
- it('Check no-proxy', function (done) {
+ it('Check noproxy', function (done) {
var noProxyNow
- var get = spawn(node, [npm, 'config', 'get', 'no-proxy']
+ var get = spawn(node, [npm, 'config', 'get', 'noproxy']
, ['ignore', 'stream', 'ignore'])
get.stdout.on('data', function (data) {
noProxyNow = data.toString().trim()
View
0  test/mocha/no-proxy-package/README.md → test/mocha/noproxy-package/README.md
File renamed without changes
View
0  test/mocha/no-proxy-package/package.json → test/mocha/noproxy-package/package.json
File renamed without changes
View
BIN  test/mocha/noproxy.tar.gz
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.