diff --git a/public/docs/ts/latest/guide/testing.jade b/public/docs/ts/latest/guide/testing.jade index d766bb7f30..975bc73561 100644 --- a/public/docs/ts/latest/guide/testing.jade +++ b/public/docs/ts/latest/guide/testing.jade @@ -4,14 +4,13 @@ 我们编写**单元测试**来探索和确认我们应用程序的**行为**部分。 1. They **guard** against breaking existing code (“regressions”) when we make changes. + 1. 当我们改变代码是,它们**守护**已有代码,以防被破坏。 - 1. 当我们改变代码是,他们**守护**已有代码,以防被破坏。 1. They **clarify** what the code does both when used as intended and when faced with deviant conditions. + 1. 在我们正确使用代码和面对异常情况时,它们**澄清**代码做什么。 - 1. 在我们正确使用代码和面对异常情况时,他们**澄清**代码做什么。 1. They **reveal** mistakes in design and implementation. Tests force us to look at our code from many angles. When a part of our application seems hard to test, we may have discovered a design flaw, something we can cure now rather than later when it becomes expensive to fix. - - 1.他们**揭露**我们设计的执行的错误。测试强迫我们从多个角度看代码。当应用程序的一个部分看起来很难测试,我们可能会发现设计缺陷,这是我们可以立刻修复的,而不是等到它变的很难修复的时候。 + 1. 它们**揭示**我们设计和实现的错误。测试强迫我们从多个角度看代码。当应用程序的一个部分看起来很难测试,我们可能会发现设计缺陷,这是我们可以立刻修复的,而不是等到它变得很难修复的时候。 a(id="top") :marked diff --git a/public/docs/ts/latest/guide/user-input.jade b/public/docs/ts/latest/guide/user-input.jade index b9e5ad7ad1..9be6a7a686 100644 --- a/public/docs/ts/latest/guide/user-input.jade +++ b/public/docs/ts/latest/guide/user-input.jade @@ -388,4 +388,4 @@ figure.image-display Angular has a two-way binding called `NgModel`, which we'll learn about in the `Forms` chapter. - Angular有一种叫做`NgModel`的双向数据绑定机制,我们将在`Forms`一章中学到它。 + Angular有一种叫做`NgModel`的双向数据绑定机制,我们将在`表单`一章中学到它。