Permalink
Browse files

Fixing typo.

  • Loading branch information...
1 parent 340ea70 commit e761a92f58893bd454baa51583fc55230bd6b206 Andre Rodrigues committed Oct 13, 2012
View
4 lib/services/serviceManagement/servicemanagementservice.js
@@ -31,7 +31,7 @@ exports = module.exports = ServiceManagementService;
* Creates a new ServiceManagementService object.
*
* @constructor
-* @param {string} subscriptionIdOrConnectionString The subscription ID for the account or the connectionString.
+* @param {string} subscriptionId The subscription ID for the account or the connectionString.
* @param {string} authentication The authentication object for the client.
* {
* keyfile: 'path to .pem',
@@ -46,7 +46,7 @@ exports = module.exports = ServiceManagementService;
* serializetype: 'XML'
* }
*/
-function ServiceManagementService(subscriptionIdOrConnectionString, authentication, hostOptions) {
+function ServiceManagementService(subscriptionId, authentication, hostOptions) {
if (typeof subscriptionId != 'string' || subscriptionId.length === 0) {
throw new Error('A subscriptionId or a connection string is required');
}
View
4 test/services/core/servicebussettings-tests.js
@@ -50,7 +50,7 @@ suite('servicebussettings-tests', function () {
// Test
(function() {
ServiceBusSettings.createFromConnectionString(connectionString);
- }).should.throw('The provided connection string ' + connectionString + ' does not have complete configuration settings.');
+ }).should.throw('The provided connection string "' + connectionString + '" does not have complete configuration settings.');
});
test('testCreateFromConnectionStringWithInvalidServiceBusKeyFail', function () {
@@ -61,7 +61,7 @@ suite('servicebussettings-tests', function () {
// Test
(function() {
ServiceBusSettings.createFromConnectionString(connectionString);
- }).should.throw('Invalid connection string setting key ' + invalidKey.toLowerCase());
+ }).should.throw('Invalid connection string setting key "' + invalidKey.toLowerCase() + '"');
});
test('testCreateFromConnectionStringWithCaseInvesitive', function () {
View
4 test/services/core/servicemanagementsettings-tests.js
@@ -62,7 +62,7 @@ suite('servicemanagementsettings-tests', function () {
// Test
(function() {
ServiceManagementSettings.createFromConnectionString(connectionString);
- }).should.throw('The provided connection string ' + connectionString + ' does not have complete configuration settings.');
+ }).should.throw('The provided connection string "' + connectionString + '" does not have complete configuration settings.');
});
test('testCreateFromConnectionStringWithInvalidServiceManagementKeyFail', function () {
@@ -73,7 +73,7 @@ suite('servicemanagementsettings-tests', function () {
// Test
(function() {
ServiceManagementSettings.createFromConnectionString(connectionString);
- }).should.throw('Invalid connection string setting key ' + invalidKey.toLowerCase());
+ }).should.throw('Invalid connection string setting key "' + invalidKey.toLowerCase() + '"');
});
test('testCreateFromConnectionStringWithCaseInsensitive', function () {

0 comments on commit e761a92

Please sign in to comment.