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

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

Merged
merged 2 commits into from
Sep 23, 2020

Conversation

tomdye
Copy link
Member

@tomdye tomdye commented Sep 23, 2020

Type: bug / feature

The following has been addressed in the PR:

Description:

Wraps children result in array if not already in one. This fixes tests that fail with single children when using the mjs files.

Resolves #843

@tomdye tomdye added bug Something isn't working needs back-port The fix requires back porting to one or more previous major versions labels Sep 23, 2020
@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 23, 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 3419959:

Sandbox Source
dojo/dojo-codesandbox-template Configuration

@codecov
Copy link

codecov bot commented Sep 23, 2020

Codecov Report

Merging #844 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #844   +/-   ##
=======================================
  Coverage   94.83%   94.83%           
=======================================
  Files         127      127           
  Lines        8034     8036    +2     
  Branches     1862     1863    +1     
=======================================
+ Hits         7619     7621    +2     
  Misses        415      415           
Impacted Files Coverage Δ
src/testing/renderer.ts 97.66% <100.00%> (+0.01%) ⬆️

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 14cf395...3419959. Read the comment docs.

@tomdye tomdye merged commit 3627097 into dojo:master Sep 23, 2020
tomdye added a commit to tomdye/framework that referenced this pull request Sep 23, 2020
* wrap children result in an array if not already in one

* add test for wrapped children
@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
bug Something isn't working needs back-port The fix requires back porting to one or more previous major versions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test renderer child handling is inconsistent and fails in Chrome
3 participants