Skip to content
This repository
Browse code

Fixing typo.

  • Loading branch information...
commit e761a92f58893bd454baa51583fc55230bd6b206 1 parent 340ea70
André Rodrigues authored
4  lib/services/serviceManagement/servicemanagementservice.js
@@ -31,7 +31,7 @@ exports = module.exports = ServiceManagementService;
31 31
 * Creates a new ServiceManagementService object.
32 32
 *
33 33
 * @constructor
34  
-* @param {string} subscriptionIdOrConnectionString  The subscription ID for the account or the connectionString.
  34
+* @param {string} subscriptionId                    The subscription ID for the account or the connectionString.
35 35
 * @param {string} authentication                    The authentication object for the client.
36 36
 *                                                   {
37 37
 *                                                     keyfile: 'path to .pem',
@@ -46,7 +46,7 @@ exports = module.exports = ServiceManagementService;
46 46
 *                                                     serializetype: 'XML'
47 47
 *                                                   }
48 48
 */
49  
-function ServiceManagementService(subscriptionIdOrConnectionString, authentication, hostOptions) {
  49
+function ServiceManagementService(subscriptionId, authentication, hostOptions) {
50 50
   if (typeof subscriptionId != 'string' || subscriptionId.length === 0) {
51 51
     throw new Error('A subscriptionId or a connection string is required');
52 52
   }
4  test/services/core/servicebussettings-tests.js
@@ -50,7 +50,7 @@ suite('servicebussettings-tests', function () {
50 50
     // Test
51 51
     (function() {
52 52
       ServiceBusSettings.createFromConnectionString(connectionString);
53  
-    }).should.throw('The provided connection string ' + connectionString + ' does not have complete configuration settings.');
  53
+    }).should.throw('The provided connection string "' + connectionString + '" does not have complete configuration settings.');
54 54
   });
55 55
 
56 56
   test('testCreateFromConnectionStringWithInvalidServiceBusKeyFail', function () {
@@ -61,7 +61,7 @@ suite('servicebussettings-tests', function () {
61 61
     // Test
62 62
     (function() {
63 63
       ServiceBusSettings.createFromConnectionString(connectionString);
64  
-    }).should.throw('Invalid connection string setting key ' + invalidKey.toLowerCase());
  64
+    }).should.throw('Invalid connection string setting key "' + invalidKey.toLowerCase() + '"');
65 65
   });
66 66
 
67 67
   test('testCreateFromConnectionStringWithCaseInvesitive', function () {
4  test/services/core/servicemanagementsettings-tests.js
@@ -62,7 +62,7 @@ suite('servicemanagementsettings-tests', function () {
62 62
     // Test
63 63
     (function() {
64 64
       ServiceManagementSettings.createFromConnectionString(connectionString);
65  
-    }).should.throw('The provided connection string ' + connectionString + ' does not have complete configuration settings.');
  65
+    }).should.throw('The provided connection string "' + connectionString + '" does not have complete configuration settings.');
66 66
   });
67 67
 
68 68
   test('testCreateFromConnectionStringWithInvalidServiceManagementKeyFail', function () {
@@ -73,7 +73,7 @@ suite('servicemanagementsettings-tests', function () {
73 73
     // Test
74 74
     (function() {
75 75
       ServiceManagementSettings.createFromConnectionString(connectionString);
76  
-    }).should.throw('Invalid connection string setting key ' + invalidKey.toLowerCase());
  76
+    }).should.throw('Invalid connection string setting key "' + invalidKey.toLowerCase() + '"');
77 77
   });
78 78
 
79 79
   test('testCreateFromConnectionStringWithCaseInsensitive', function () {

0 notes on commit e761a92

Please sign in to comment.
Something went wrong with that request. Please try again.