MockRender standalone directives with providers fails to add the providers #7932
eyalellenbogen
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm not sure if I'm missing something. When I try to
MockRender
my standalone directive, it is being instantiated without its providers.This test fails. When removing
standalone: true
everything works fine.I don't want to explicitly add my providers when calling
MockRender
. They're part of my directive's implementation and I want to test that it's all working. Is there some flag I need to turn on or is this a bug?PS
This test passes when setting it up with the TestBed. directly
Thanks
Beta Was this translation helpful? Give feedback.
All reactions