摘要: In this lesson, you will learn how to implement pytest fixtures. Many unit tests have the same resource requirements. For example, an instantiated obj 阅读全文
posted @ 2018-02-22 22:04 Zhentiw 阅读(361) 评论(0) 推荐(0)
摘要: Body with background image and gradient Body with elaborate background using only CSS Using CSS background images for conditional image display Using 阅读全文
posted @ 2018-02-22 21:10 Zhentiw 阅读(209) 评论(0) 推荐(0)
摘要: 'cover': The smaller axies of image (x axies) should match smaller axies (x axies) of container. So some part of image might be cut off. 'container': 阅读全文
posted @ 2018-02-22 21:01 Zhentiw 阅读(152) 评论(0) 推荐(0)
摘要: In this lesson, I use Enzyme and Jest's Snapshot functionality to write an integration test for a component called CounterConsumer that consumes the R 阅读全文
posted @ 2018-02-22 01:21 Zhentiw 阅读(176) 评论(0) 推荐(0)
摘要: In this lesson, I use Enzyme and Jest to unit test a Counter Render Prop component. Writing integration tests are perfect for components that consume 阅读全文
posted @ 2018-02-22 01:15 Zhentiw 阅读(542) 评论(0) 推荐(0)