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

Add util for recursively translating object values #60

Merged
merged 2 commits into from
Aug 30, 2019

Conversation

childish-sambino
Copy link
Contributor

Also deletes the no-longer-used ResourcePathParser.

Sam Harrison added 2 commits August 29, 2019 13:13
@@ -1,4 +1,4 @@
const { doesObjectHaveProperty, translateKeys, sleep, splitArray } = require('../../src/services/javascript-utilities');
const { doesObjectHaveProperty, translateKeys, translateValues, sleep, splitArray } = require('../../src/services/javascript-utilities');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a test here for translateObject?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meh. It's transitively covered by tests on translateKeys and translateValues.

src/services/javascript-utilities.js Show resolved Hide resolved
@childish-sambino childish-sambino merged commit 5afddac into master Aug 30, 2019
@childish-sambino childish-sambino deleted the translate-values branch August 30, 2019 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants