diff --git a/package.json b/package.json index 4b918bf..268a67b 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "json" ], "dependencies": { - "get-own-enumerable-property-symbols": "^2.0.1", + "get-own-enumerable-property-symbols": "^3.0.0", "is-obj": "^1.0.1", "is-regexp": "^1.0.0" }, diff --git a/test/index.js b/test/index.js index d16894c..f5ab30c 100644 --- a/test/index.js +++ b/test/index.js @@ -94,9 +94,11 @@ test('allows an object to be transformed', t => { transform: (obj, prop, result) => { if (prop === 'val') { return String(obj[prop] + 1); - } else if (prop === 'bar') { + } + if (prop === 'bar') { return '\'' + result + 'L\''; - } else if (obj[prop] === 8) { + } + if (obj[prop] === 8) { return 'LOL'; } return result;