Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Style theme variations: add property extraction and merge utils (#58803)
* First commit Pulling out the utils from #56622 so we test separately * Adding failing tests :) * Adds working tests Removes extra functions - now internal to the hook * Adds more tests * Adds filterObjectByProperty tests * Update packages/edit-site/src/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js Co-authored-by: Andrew Serong <14988353+andrewserong@users.noreply.github.com> * Merge map callbacks * More tests, adding a `null` check too * Update comment to reflect functionality * Update test to ensure we don't reference original object --------- Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org> Co-authored-by: scruffian <scruffian@git.wordpress.org>
- Loading branch information