Skip to content

Commit

Permalink
tests: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed May 9, 2020
1 parent 0fcdbd8 commit ce7391a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/src/getProp-parser-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function stripNodeStartAndEndRecursively(node) {
return node.map(stripNodeStartAndEndRecursively);
}

if (typeof node === 'object') {
if (Boolean(node) && typeof node === 'object') {
return stripNodeStartAndEnd(mapValues(node, stripNodeStartAndEndRecursively));
}

Expand Down

0 comments on commit ce7391a

Please sign in to comment.