音が流れない場合、再生を一時停止してもう一度再生してみて下さい。
ツール 
画像
ng-tips
529回再生
Writing unit tests for asynchronous Angular service methods

#angular #unittesting #async #promise #observable #angularservices

This video has a step by step tutorials for writing unit tests for async Angular services methods. It focuses on promises, observables, setTimeout and delay.

0:11 Service with Observable method introduction
1:24 Unit test for Observable
11:25 Unit test for Observable + delay()
16:03 Unit test for Observable + multiple delay()
17:15 Service with Promise method introduction
18:39 Unit test for Promise
29:10 Unit test for Promise + setTimeout()
31:08 Unit test for Promise + multiple setTimeout()


I also have a blog on testing asynchronous Angular service methods.

medium.com/@sanjeevsubedi/writing-unit-tests-for-a…

コメント