上一页 1 ··· 445 446 447 448 449 450 451 452 453 ··· 496 下一页
摘要: .blue{ color: blue}.bold{ font-weight: bold;}.large{ font-size: 40px;}ngClass can accept an array:ngClassngClass can take a string:ngClassngClas... 阅读全文
posted @ 2016-01-10 16:06 Zhentiw 阅读(183) 评论(0) 推荐(0)
摘要: When testing React components, we often want to make sure the rendered output of the component matches what we expect. With the React Shallow Renderer... 阅读全文
posted @ 2016-01-07 16:53 Zhentiw 阅读(206) 评论(0) 推荐(0)
摘要: Setting up a shallow renderer for each test can be redundant, especially when trying to write similar tests that have slight tweaks. In this lesson, w... 阅读全文
posted @ 2016-01-07 15:12 Zhentiw 阅读(178) 评论(0) 推荐(0)
摘要: Often our components have output that shows differently depending on the props it is given; in this lesson, we go over how to compare theclassNameprop... 阅读全文
posted @ 2016-01-07 03:52 Zhentiw 阅读(294) 评论(0) 推荐(0)
摘要: The React Shallow Renderer test utility lets us inspect the output of a component one level deep. In this lesson, we will examine the rendered output ... 阅读全文
posted @ 2016-01-07 03:37 Zhentiw 阅读(275) 评论(0) 推荐(0)
摘要: somereturns abooleanvalue after passing each item in the source array through the test function that you pass in as the first parameter. This makes it... 阅读全文
posted @ 2016-01-06 15:32 Zhentiw 阅读(141) 评论(0) 推荐(0)
摘要: When you render a component with the Shallow Renderer, you have access to the underlying object. We can write lots of useful tests to check that our c... 阅读全文
posted @ 2016-01-05 02:26 Zhentiw 阅读(286) 评论(0) 推荐(0)
摘要: When writing React component tests, it can be hard to decipher the error diffs of broken tests, since they are just the final objects that React uses ... 阅读全文
posted @ 2016-01-05 01:54 Zhentiw 阅读(300) 评论(0) 推荐(0)
摘要: In this lesson, we walk through how to use one of React's Test Utilities (from thereact-addons-test-utilspackage) called "Shallow Rendering". This let... 阅读全文
posted @ 2016-01-05 01:23 Zhentiw 阅读(356) 评论(0) 推荐(0)
摘要: JSON(JavaScript Object Notation) is a standard method to serialize JavaScript objects and is commonly used to transfer data from the server to the bro... 阅读全文
posted @ 2016-01-04 04:18 Zhentiw 阅读(324) 评论(0) 推荐(0)
上一页 1 ··· 445 446 447 448 449 450 451 452 453 ··· 496 下一页