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) {
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
const options = {
......
......@@ -53,6 +53,6 @@ function serialize(a) {
}
return decodeURIComponent(buildParams('', a).join('&').replace(/%20/g, '+'));
};
}
module.exports = serialize;
......@@ -21,7 +21,7 @@ function convert(obj, conversionFn, newObject) {
const convertObj = newObject[conversionFn(prop)] = {};
convert(obj[prop], conversionFn, convertObj);
} else {
newObject[conversionFn(prop)] = obj[prop]
newObject[conversionFn(prop)] = obj[prop];
}
});
return newObject;
......
......@@ -115,7 +115,7 @@ describe('util methods', () => {
describe('conversion', () => {
it('should return what was passed if it is falsy', () => {
expect(util.convert(undefined)).toEqual(undefined);
})
});
it('should work with no props', () => {
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