Permalink
Browse files

Construct services with endpoints in browser-builder

Handles CloudSearchDomain case (required endpoint)
  • Loading branch information...
1 parent c78cb5a commit 555e5367b3eec225dd7a820a9629d90f1c2ac753 @lsegal lsegal committed Jun 26, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 dist-tools/strategies/default.js
  2. +1 −1 dist-tools/test/browser-builder.mocha.spec.coffee
@@ -122,7 +122,7 @@ DefaultStrategy.prototype.getService = function(service, version) {
try {
var ClassName = this.serviceClasses[service];
- svc = new ClassName({apiVersion: version});
+ svc = new ClassName({apiVersion: version, endpoint: 'localhost'});
api = this.apis.load(service, svc.api.apiVersion);
} catch (e) {
return null;
@@ -15,7 +15,7 @@ describe 'Builder', ->
code = builder.serviceCode.join('\n')
assertServiceAdded = (klass, version) ->
- version = version || new helpers.AWS[klass]().api.apiVersion;
+ version = version || new helpers.AWS[klass](endpoint: 'localhost').api.apiVersion;
expect(code).to.match(new RegExp('AWS\\.' + klass +
' = AWS\\.Service\\.defineService\\(\'' +
helpers.AWS[klass].serviceIdentifier + '\''))

0 comments on commit 555e536

Please sign in to comment.