Commit 989ca3ae authored by Aaron Tidwell's avatar Aaron Tidwell

fix linter and format errors

parent 3e4ec009
...@@ -73,7 +73,7 @@ Client.prototype.makeRequest = function(obj) { ...@@ -73,7 +73,7 @@ Client.prototype.makeRequest = function(obj) {
const serialized = util.serializeToQSParams(obj); const serialized = util.serializeToQSParams(obj);
path = versionPaths[this.options.get('version')] + (path ? path : '') + '.' + this.options.get('format') + '?' + serialized path = versionPaths[this.options.get('version')] + (path ? path : '') + '.' + this.options.get('format') + '?' + serialized;
// create options for the https call // create options for the https call
const options = { const options = {
......
...@@ -53,6 +53,6 @@ function serialize(a) { ...@@ -53,6 +53,6 @@ function serialize(a) {
} }
return decodeURIComponent(buildParams('', a).join('&').replace(/%20/g, '+')); return decodeURIComponent(buildParams('', a).join('&').replace(/%20/g, '+'));
}; }
module.exports = serialize; module.exports = serialize;
...@@ -21,7 +21,7 @@ function convert(obj, conversionFn, newObject) { ...@@ -21,7 +21,7 @@ function convert(obj, conversionFn, newObject) {
const convertObj = newObject[conversionFn(prop)] = {}; const convertObj = newObject[conversionFn(prop)] = {};
convert(obj[prop], conversionFn, convertObj); convert(obj[prop], conversionFn, convertObj);
} else { } else {
newObject[conversionFn(prop)] = obj[prop] newObject[conversionFn(prop)] = obj[prop];
} }
}); });
return newObject; return newObject;
......
...@@ -94,7 +94,7 @@ describe('util methods', () => { ...@@ -94,7 +94,7 @@ describe('util methods', () => {
} }
}); });
}); });
it('should convert properties that are deeply', () => { it('should convert properties that are deeply', () => {
expect(util.convert({ expect(util.convert({
some_prop: { some_prop: {
...@@ -115,7 +115,7 @@ describe('util methods', () => { ...@@ -115,7 +115,7 @@ describe('util methods', () => {
describe('conversion', () => { describe('conversion', () => {
it('should return what was passed if it is falsy', () => { it('should return what was passed if it is falsy', () => {
expect(util.convert(undefined)).toEqual(undefined); expect(util.convert(undefined)).toEqual(undefined);
}) });
it('should work with no props', () => { it('should work with no props', () => {
expect(util.convert({}, util.underscoreToCamel)).toEqual({}); expect(util.convert({}, util.underscoreToCamel)).toEqual({});
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment