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

Handle ignored children in decorate #840

Merged
merged 2 commits into from
Sep 9, 2020

Conversation

maier49
Copy link
Contributor

@maier49 maier49 commented Sep 9, 2020

Type: bug

The following has been addressed in the PR:

Description:
Allows finding wrapped nodes when the actual array has additional children that are undefined or booleans.

This fix resolves the failure that led to #839 being created, but the actual bug was not what we originally thought.
Resolves #839

@maier49 maier49 changed the title Handle falsy children in decorate Handle ignored children in decorate Sep 9, 2020
@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 9, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5eaa6c3:

Sandbox Source
dojo/dojo-codesandbox-template Configuration

@codecov
Copy link

codecov bot commented Sep 9, 2020

Codecov Report

Merging #840 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #840   +/-   ##
=======================================
  Coverage   97.64%   97.64%           
=======================================
  Files         127      127           
  Lines        8034     8034           
  Branches     1861     1861           
=======================================
  Hits         7845     7845           
  Misses        189      189           
Impacted Files Coverage Δ
src/testing/decorate.ts 98.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f1cdf75...5eaa6c3. Read the comment docs.

@maier49 maier49 merged commit d903782 into dojo:master Sep 9, 2020
@maier49 maier49 deleted the handle-falsy-children-in-decorate branch September 9, 2020 18:11
tomdye pushed a commit to tomdye/framework that referenced this pull request Sep 23, 2020
@tomdye tomdye mentioned this pull request Sep 23, 2020
tomdye added a commit that referenced this pull request Sep 23, 2020
* Handle ignored children in decorate (#840)

* Allow finding and modifying wrapped widgets in functional children (#780)

* Add function to create "typed" version of middleware (#819)

* Add factory function to middleware for adding types

* change to withType

* Fix mock middleware types (#822)

* Wrap children result in an array if not already in one (#844)

* wrap children result in an array if not already in one

* add test for wrapped children

* update assert render unit test (#820)

Co-authored-by: Bradley Maier <bmaier@sitepen.com>
Co-authored-by: Anthony Gubler <agubler@sitepen.com>
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.

Test renderer: can't call property for conditional wrapped node
4 participants