You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[X] Support request
[ ] Other... Please describe:
Current behavior
triggerEventHandler requires three arguments, which seems to imply that it doesn't work with void event emitters?
Expected behavior
I though I should be able to do spectator.triggerEventHandler(MyComponent, 'myEventEmitter')
Minimal reproduction of the problem with instructions
For bug reports please provide the STEPS TO REPRODUCE and if possible a MINIMAL DEMO of the problem via https://stackblitz.com or similar (you can use this template as a starting point: https://bit.ly/2zme3bj).
Angular version: 12.0.1
Browser:
- [X] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: XX
- Platform:
Others:
@NetanelBasal That's not the same thing. You're showing how to verify the child component emits the event, which I've done in the child's tests. I'm trying to verify that this component has hooked up the child's emitted event to a specific method in this component.
This discussion was converted from issue #467 on August 03, 2021 05:46.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm submitting a...
Current behavior
triggerEventHandler
requires three arguments, which seems to imply that it doesn't work with void event emitters?Expected behavior
I though I should be able to do
spectator.triggerEventHandler(MyComponent, 'myEventEmitter')
Minimal reproduction of the problem with instructions
For bug reports please provide the STEPS TO REPRODUCE and if possible a MINIMAL DEMO of the problem via
https://stackblitz.com or similar (you can use this template as a starting point: https://bit.ly/2zme3bj).
Environment
Beta Was this translation helpful? Give feedback.
All reactions