File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 "through2" : " ^2.0.0"
2121 },
2222 "scripts" : {
23+ "link-modules" : " node ./scripts/link" ,
24+ "install-module-dependencies" : " node ./scripts/install" ,
25+ "postinstall" : " npm run link-modules && npm run install-module-dependencies" ,
2326 "docs" : " node ./scripts/docs.js" ,
2427 "lint" : " jshint packages/ system-test/ test/ && jscs packages/ system-test/ test/" ,
2528 "test" : " npm run docs && mocha test/docs.js packages/*/test/*.js" ,
2629 "system-test" : " mocha packages/*/system-test/*.js --no-timeouts --bail" ,
27- "postinstall" : " node ./scripts/install" ,
2830 "coveralls" : " istanbul cover _mocha --report lcovonly -- --no-timeouts --bail packages/*/test/*.js -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
2931 },
3032 "license" : " Apache-2.0" ,
Original file line number Diff line number Diff line change @@ -547,7 +547,9 @@ util.extendGlobalConfig = extendGlobalConfig;
547547function normalizeArguments ( globalContext , localConfig , options ) {
548548 options = options || { } ;
549549
550- var config = util . extendGlobalConfig ( globalContext . config_ , localConfig ) ;
550+ var globalConfig = globalContext && globalContext . config_ ;
551+
552+ var config = util . extendGlobalConfig ( globalConfig , localConfig ) ;
551553
552554 if ( options . projectIdRequired !== false && ! config . projectId ) {
553555 throw util . missingProjectIdError ;
Original file line number Diff line number Diff line change 1818
1919var assert = require ( 'assert' ) ;
2020var env = require ( '../../../system-test/env.js' ) ;
21- var gcloud = require ( '../lib ' ) ;
21+ var gcloud = require ( '../' ) ;
2222var path = require ( 'path' ) ;
2323
2424// Test used to confirm we can perform a successful API operation.
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ var prop = require('propprop');
2525var uuid = require ( 'node-uuid' ) ;
2626
2727var env = require ( '../../../system-test/env.js' ) ;
28- var BigQuery = require ( '@google-cloud/bigquery/index.js ' ) ;
28+ var BigQuery = require ( '@google-cloud/bigquery' ) ;
2929var Logging = require ( '../' ) ;
30- var PubSub = require ( '@google-cloud/pubsub/index.js ' ) ;
31- var Storage = require ( '@google-cloud/storage/index.js ' ) ;
30+ var PubSub = require ( '@google-cloud/pubsub' ) ;
31+ var Storage = require ( '@google-cloud/storage' ) ;
3232
3333describe ( 'Logging' , function ( ) {
3434 var TESTS_PREFIX = 'gcloud-logging-test' ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ var extend = require('extend');
2121var prop = require ( 'propprop' ) ;
2222
2323var env = require ( '../../../system-test/env.js' ) ;
24- var Translate = require ( '../lib/translate/index.js ' ) . Translate ;
24+ var Translate = require ( '../' ) . Translate ;
2525
2626var API_KEY = process . env . GCLOUD_TESTS_API_KEY ;
2727
You can’t perform that action at this time.
0 commit comments