摘要: Traditionally you had to create DOM elements to test a directive but by shifting our focus to components, writing unit tests got a lot easier using $c 阅读全文
posted @ 2016-09-08 20:26 Zhentiw 阅读(310) 评论(0) 推荐(0)
摘要: Managing state is one of the hardest things to do in any application. Angular 2 tackles this problem by making it easy to implement a reactive, uni-di 阅读全文
posted @ 2016-09-08 18:04 Zhentiw 阅读(229) 评论(0) 推荐(0)
摘要: Jest comes pre-packaged with the ability to track code coverage for the modules you're testing, but it takes a little extra work to make it track unte 阅读全文
posted @ 2016-09-08 03:32 Zhentiw 阅读(296) 评论(0) 推荐(0)
摘要: Either Functor: Examples: 阅读全文
posted @ 2016-09-08 03:26 Zhentiw 阅读(348) 评论(0) 推荐(1)