Angular1-scaffold
Angular1-scaffold copied to clipboard
Misleading example of testing services
trafficstars
Hi there,
I encounter a problem with testing services. According to documentation I try to call bundle function with my service as a parameter, but it gives me an error that I should pass rather something in type of NgModule. So I believe there is a mistake in the documentation, because given example doesn't work properly.
Shorten tests output:
Error: bundle() requires a decorated NgModule as its first argument.
@bkostrowiecki same problem here. Were you able to find a workaround?
What documentation example are you referring to?