上一页 1 ··· 401 402 403 404 405 406 407 408 409 ··· 497 下一页
摘要: 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 阅读(314) 评论(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 阅读(232) 评论(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 阅读(298) 评论(0) 推荐(0)
摘要: Either Functor: Examples: 阅读全文
posted @ 2016-09-08 03:26 Zhentiw 阅读(353) 评论(0) 推荐(1)
摘要: In normal Javascript, we do undefine check or null check: Sometime backend data return may contain or not contain 'name' prop. So let's see how to def 阅读全文
posted @ 2016-09-07 04:00 Zhentiw 阅读(442) 评论(0) 推荐(0)
摘要: Well, this stuff will be a little bit strange if you deal with it first time. Container Object: Just a wrapper / contianer for values No Method No Nou 阅读全文
posted @ 2016-09-06 04:23 Zhentiw 阅读(352) 评论(0) 推荐(0)
摘要: In Angular 1.5 introduces "compoment" syntax. But ng-annotate doesn't understand ".compoment" syntax, that's why in min version, the code doesn't work 阅读全文
posted @ 2016-09-04 17:34 Zhentiw 阅读(294) 评论(0) 推荐(0)
摘要: Using R.tap: 阅读全文
posted @ 2016-09-04 02:58 Zhentiw 阅读(194) 评论(0) 推荐(0)
摘要: Let's learn how to unit test your JavaScript with Jest, a JavaScript unit testing framework from Facebook. We'll install and optimize Jest for this pr 阅读全文
posted @ 2016-09-03 04:36 Zhentiw 阅读(322) 评论(0) 推荐(0)
摘要: Curry: The idea of Curry is to spreate the data from the function. Using Curry to define the function logic and later pass the data into the function 阅读全文
posted @ 2016-09-02 04:17 Zhentiw 阅读(393) 评论(0) 推荐(0)
上一页 1 ··· 401 402 403 404 405 406 407 408 409 ··· 497 下一页