0
Follow
2
View

How to test async Call for Angular service

downgirl 注册会员
2023-01-26 10:43

Using spyOn on the buildStorage method will replace the called method with a stub (which will return undefined). In this case you want to use the callThrough or and.returnValue to ensure it returns the value you are expecting