Skip to content

Commit

Permalink
Merge pull request #1 from bamapookie/patch-2
Browse files Browse the repository at this point in the history
Fix test to match new URL
  • Loading branch information
bamapookie authored Jul 1, 2016
2 parents 8091efd + 986c91e commit c33c032
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions test/common/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
var assert = require('assert');
var duplexify;
var extend = require('extend');
var format = require('string-format-obj');
var googleAuth = require('google-auto-auth');
var is = require('is');
var mockery = require('mockery-next');
Expand Down Expand Up @@ -109,14 +110,17 @@ describe('common/util', function() {
});

it('should export an error for module instantiation errors', function() {
var missingProjectIdError = new Error([
var errorMessage = format([
'Sorry, we cannot connect to Google Cloud Services without a project ID.',
'You may specify one with an environment variable named',
'"GCLOUD_PROJECT".',
'See https://googlecloudplatform.github.io/gcloud-node/#/authentication',
'for a detailed guide on creating an authenticated connection.'
].join(' '));
'"GCLOUD_PROJECT". See {baseUrl}/{path} for a detailed guide on creating',
'an authenticated connection.'
].join(' '), {
baseUrl: 'https://googlecloudplatform.github.io/gcloud-node/#',
path: '/docs/guides/authentication'
});

var missingProjectIdError = new Error(errorMessage);
assert.deepEqual(util.missingProjectIdError, missingProjectIdError);
});

Expand Down

0 comments on commit c33c032

Please sign in to comment.