摘要: Here we want to test a toggle button component, when the button was click, state should change, style should change also. Toggle component: Test: 阅读全文
posted @ 2017-09-20 02:52 Zhentiw 阅读(684) 评论(0) 推荐(0)
摘要: For example we have a React comonent: -- A toggle button, we want to test. When it si toggle on, the color is a little bit darken than it's not. Testi 阅读全文
posted @ 2017-09-20 01:59 Zhentiw 阅读(426) 评论(0) 推荐(0)
摘要: For intergration tests, always remember when you create a 'mass' you should aslo clean up the 'mass'. For example when you start the server, you need 阅读全文
posted @ 2017-09-20 01:20 Zhentiw 阅读(216) 评论(0) 推荐(0)