Skip to content
Browse files

Remove whitespace [Gun.io WhitespaceBot]

  • Loading branch information...
1 parent dac783c commit 82423a58a8b2a078c17ca7ca382365d2226924ff Gun.io Whitespace Robot committed Oct 28, 2011
Showing with 28 additions and 8 deletions.
  1. +20 −0 .gitignore
  2. +1 −1 LICENSE
  3. +2 −2 lib/OperationHelper.js
  4. +5 −5 test/OperationHelper_test.js
View
20 .gitignore
@@ -0,0 +1,20 @@
+# Compiled source #
+###################
+*.com
+*.class
+*.dll
+*.exe
+*.o
+*.so
+*.pyc
+
+# Logs and databases #
+######################
+*.log
+
+# OS generated files #
+######################
+.DS_Store*
+ehthumbs.db
+Icon?
+Thumbs.db
View
2 LICENSE
@@ -15,4 +15,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.
+IN THE SOFTWARE.
View
4 lib/OperationHelper.js
@@ -30,7 +30,7 @@ OperationHelper.prototype.init = function(params) {
OperationHelper.prototype.getSignatureHelper = function() {
if (typeof(this.signatureHelper) === 'undefined') {
- var params = {};
+ var params = {};
params[RSH.kAWSAccessKeyId] = this.awsId;
params[RSH.kAWSSecretKey] = this.awsSecret;
params[RSH.kEndPoint] = this.endPoint;
@@ -70,7 +70,7 @@ OperationHelper.prototype.execute = function(operation, params, callback) {
var statusCode = response.statusCode == 200 ? null : response.statusCode;
parser.addListener('end', function(result) {
callback(statusCode, result);
-
+
// so that next time this is called the result isn't concatenated
parser.removeAllListeners('end');
});
View
10 test/OperationHelper_test.js
@@ -26,7 +26,7 @@ http.createClient = function(port, host) {
return {
request: function(it, doesnt, matter) {
return request_emitter;
- }
+ }
};
}
@@ -39,17 +39,17 @@ vows.describe('OperationHelper execute').addBatch({
'Keywords': 'harry potter',
'ResponseGroup': 'ItemAttributes,Offers'
}, this.callback);
-
+
// use the emitter to emit the appropriate events
request_emitter.emit('response', response_emitter);
response_emitter.emit('data', '<it><is><some>xml</some></is></it>');
- response_emitter.emit('end');
+ response_emitter.emit('end');
},
-
+
'are json': function(error, result) {
assert.isObject(result);
},
-
+
'have the right structure': function(error, result) {
assert.deepEqual(result, {is: {some: 'xml'}});
}

0 comments on commit 82423a5

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