Closed keichinger closed 5 years ago
Given the following example
mount(".selector", AppComponent, [someParam]);
with two matching elements, the mojave would call the AppComponent's constructor with the following args:
AppComponent
firstMatchingElement, someParam
secondMatchingElement, firstMatchingElement, someParam
thirdMatchingElement, secondMatchingElement, firstMatchingElement, someParam
And it would just continue like that as we've kept prepending the elements with each additional match.
Can you please add a test?
@apfelbox I've added a test that even compares the actual parameters against the expected ones.
Note that we should add more tests for mount and mountJsx.
mount
mountJsx
Thanks 🎈
Given the following example
with two matching elements, the mojave would call the
AppComponent
's constructor with the following args:firstMatchingElement, someParam
secondMatchingElement, firstMatchingElement, someParam
thirdMatchingElement, secondMatchingElement, firstMatchingElement, someParam
And it would just continue like that as we've kept prepending the elements with each additional match.