Angular1-scaffold icon indicating copy to clipboard operation
Angular1-scaffold copied to clipboard

Misleading example of testing services

Open bkostrowiecki opened this issue 8 years ago • 2 comments
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 avatar Feb 27 '17 22:02 bkostrowiecki

@bkostrowiecki same problem here. Were you able to find a workaround?

RobARichardson avatar Apr 11 '18 21:04 RobARichardson

What documentation example are you referring to?

aciccarello avatar Apr 11 '18 21:04 aciccarello