Skip to content

Commit

Permalink
fixing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
edudavid committed Dec 10, 2018
1 parent d298d10 commit dc2bb0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/utils/objectHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function get(object, path) {
const subPaths = path.split('.');
let value = Object.assign({}, object);
subPaths.forEach(subPath => {
value = value ? value[subPath] : undefined;
value = value[subPath] ? value[subPath] : undefined;
});
return value;
}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"homepage": "https://github.com/edudavid/json-map-transform#readme",
"main": "index.js",
"scripts": {
"test": "jest --coverage --coverageReporters=text-lcov | coveralls",
"coveralls": "jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
"test": "jest"
},
"devDependencies": {
"coveralls": "^3.0.2",
Expand Down

0 comments on commit dc2bb0f

Please sign in to comment.