Skip to content
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

Code cleanup #261

Merged
merged 4 commits into from
Jan 27, 2022
Merged

Code cleanup #261

merged 4 commits into from
Jan 27, 2022

Conversation

mattolson
Copy link
Contributor

@mattolson mattolson commented Jan 26, 2022

What?

  • Refactor filterByKey
  • Add some documentation on the expected structure of the language object
  • Optimize code for the expected data structure, making it a bit more readable
  • Add fixture for lang file (comes from Cornerstone)
  • Add tests for Filter class
  • A couple of other small cleanup changes

Testing

I examined the output of the langJson helper (which uses filterByKey) and verified that the output is the same with this change.

* Add some documentation on the expected structure of the language
object
* Optimize code for the expected data structure, making it a bit more
readable
@mattolson
Copy link
Contributor Author

@jairo-bc Can you take a second look? I have made some updates since your review (just added tests).

@mattolson mattolson merged commit 7231f6a into bigcommerce:master Jan 27, 2022
@mattolson mattolson deleted the STRF-9433 branch January 27, 2022 02:34
@mattolson mattolson mentioned this pull request Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants