-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bugfix: fix conditional to ensure we catch properties with a falsy value #423
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Could we add a unit test for this? 😁
__tests__/__output/json-nested.json
Outdated
{ | ||
"color": { | ||
"base": { | ||
"red": { | ||
"primary": "#611D1C", | ||
"secondary": { | ||
"inverse": "#000000" | ||
} | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure where this came from... Is this ok @dbanksdesign ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there might be a race condition in our unit tests somewhere.. there shouldn't be anything checked into tests/__output/ that is the folder where we put files generated by the unit tests. It should get cleared after tests run. You can remove this file or just try running the tests again and see if it gets removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just remove that one file and we are good to go!
__tests__/__output/json-nested.json
Outdated
{ | ||
"color": { | ||
"base": { | ||
"red": { | ||
"primary": "#611D1C", | ||
"secondary": { | ||
"inverse": "#000000" | ||
} | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there might be a race condition in our unit tests somewhere.. there shouldn't be anything checked into tests/__output/ that is the folder where we put files generated by the unit tests. It should get cleared after tests run. You can remove this file or just try running the tests again and see if it gets removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Fixes #406