Skip to content

Commit 5a92d8e

Browse files
committed
fix(doc): fix review errors
1 parent 1e28b24 commit 5a92d8e

9 files changed

+198
-198
lines changed

zh_CN/code-of-conduct.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
___
22
**备注**
33

4-
这是[code-of-coduct.md](https://github.com/sindresorhus/ava/blob/master/code-of-coduct.md)的简体中文翻译。这个[链接](https://github.com/sindresorhus/ava/compare/master...zhaozhiming:master)用来查看本翻译与AVA 的master 分支是否有差别(如果你没有看到`code-of-coduct.md`发生变化,那就意味着这份翻译文档是最新的)。
4+
这是 [code-of-coduct.md](https://github.com/sindresorhus/ava/blob/master/code-of-coduct.md) 的简体中文翻译。这个[链接](https://github.com/sindresorhus/ava/compare/89767ec3b6174e59d37faaadb50cfa3c0d58bda6...master#diff-d3030a18b089fdb1fbfabf6e75e4aef0) 用来查看本翻译与 AVA 的 master 分支是否有差别(如果你没有看到`code-of-coduct.md`发生变化,那就意味着这份翻译文档是最新的)。
55
___
66

77
# 贡献者的行为准则
88

9-
翻译: [Español](https://github.com/sindresorhus/ava-docs/blob/master/es_ES/code-of-conduct.md), [Français](https://github.com/sindresorhus/ava-docs/blob/master/fr_FR/code-of-conduct.md), [日本語](https://github.com/sindresorhus/ava-docs/blob/master/ja_JP/code-of-conduct.md), [Português](https://github.com/sindresorhus/ava-docs/blob/master/pt_BR/code-of-conduct.md), [Русский](https://github.com/sindresorhus/ava-docs/blob/master/ru_RU/code-of-conduct.md), [简体中文](https://github.com/sindresorhus/ava-docs/blob/master/zh_CN/code-of-conduct.md)
9+
翻译[Español](https://github.com/sindresorhus/ava-docs/blob/master/es_ES/code-of-conduct.md), [Français](https://github.com/sindresorhus/ava-docs/blob/master/fr_FR/code-of-conduct.md), [日本語](https://github.com/sindresorhus/ava-docs/blob/master/ja_JP/code-of-conduct.md), [Português](https://github.com/sindresorhus/ava-docs/blob/master/pt_BR/code-of-conduct.md), [Русский](https://github.com/sindresorhus/ava-docs/blob/master/ru_RU/code-of-conduct.md), [简体中文](https://github.com/sindresorhus/ava-docs/blob/master/zh_CN/code-of-conduct.md)
1010

11-
作为这个项目的贡献者和维护者,我们希望社区开放和受欢迎,我们承诺尊重所有参与项目的人,不管是报告问题,提交功能需求,更新文档,提交pull request 或patch,或者是其他积极的活动。
11+
作为这个项目的贡献者和维护者,我们希望社区开放和受欢迎,我们承诺尊重所有参与项目的人,不管是报告问题,提交功能需求,更新文档,提交 pull request 或 patch,或者是其他积极的活动。
1212

1313
我们致力于让每个参与项目的人享受相同的体验,不管经验水平,性别,性别身份和表达,性取向,残疾,个人形象,身体大小,种族,种族渊源,年龄,宗教信仰或者国籍。
1414

@@ -29,9 +29,9 @@ ___
2929

3030
当个人代表项目或者社区的时候,这份行为准则适用于项目空间和公共空间。
3131

32-
举报辱骂,骚扰或者其他不被接受的行为可以通过sindresorhus@gmail.com 联系项目维护人员。所有的投诉都会被审计和调查,最终会产生一个认为必要和合理的结果。维护人员有义务为报告者保密其信息。
32+
举报辱骂,骚扰或者其他不被接受的行为可以通过 sindresorhus@gmail.com 联系项目维护人员。所有的投诉都会被审计和调查,最终会产生一个认为必要和合理的结果。维护人员有义务为报告者保密其信息。
3333

34-
这份行为准则改编自[贡献者契约][homepage]版本1.3.0,可在[http://contributor-covenant.org/version/1/3/0/][version]获取。
34+
这份行为准则改编自[贡献者契约][homepage]版本 1.3.0,可在 [http://contributor-covenant.org/version/1/3/0/][version] 获取。
3535

3636
[homepage]: http://contributor-covenant.org
3737
[version]: http://contributor-covenant.org/version/1/3/0/

zh_CN/contributing.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
___
22
**备注**
33

4-
这是[contributing.md](https://github.com/sindresorhus/ava/blob/master/contributing.md)的简体中文翻译。这个[链接](https://github.com/sindresorhus/ava/compare/master...zhaozhiming:master)用来查看本翻译与AVA 的master 分支是否有差别(如果你没有看到`contributing.md`发生变化,那就意味着这份翻译文档是最新的)。
4+
这是 [contributing.md](https://github.com/sindresorhus/ava/blob/master/contributing.md) 的简体中文翻译。这个[链接](https://github.com/sindresorhus/ava/compare/89767ec3b6174e59d37faaadb50cfa3c0d58bda6...master#diff-cc4aac3e9be04e0413c9520f223b493c) 用来查看本翻译与 AVA 的 master 分支是否有差别(如果你没有看到`contributing.md`发生变化,那就意味着这份翻译文档是最新的)。
55
___
6-
# 向AVA 贡献
6+
# 向 AVA 贡献
77

8-
感谢向AVA 作出贡献! ✨
8+
感谢向 AVA 作出贡献! ✨
99

1010
请注意,这个项目发布带有[贡献者的行为准则](code-of-conduct.md),参与这个项目你需要同意并遵守其中的条款。
1111

12-
翻译: [Español](https://github.com/sindresorhus/ava-docs/blob/master/es_ES/contributing.md), [Français](https://github.com/sindresorhus/ava-docs/blob/master/fr_FR/contributing.md), [日本語](https://github.com/sindresorhus/ava-docs/blob/master/ja_JP/contributing.md), [Português](https://github.com/sindresorhus/ava-docs/blob/master/pt_BR/contributing.md), [Русский](https://github.com/sindresorhus/ava-docs/blob/master/ru_RU/contributing.md), [简体中文](https://github.com/sindresorhus/ava-docs/blob/master/zh_CN/contributing.md)
12+
翻译[Español](https://github.com/sindresorhus/ava-docs/blob/master/es_ES/contributing.md), [Français](https://github.com/sindresorhus/ava-docs/blob/master/fr_FR/contributing.md), [日本語](https://github.com/sindresorhus/ava-docs/blob/master/ja_JP/contributing.md), [Português](https://github.com/sindresorhus/ava-docs/blob/master/pt_BR/contributing.md), [Русский](https://github.com/sindresorhus/ava-docs/blob/master/ru_RU/contributing.md), [简体中文](https://github.com/sindresorhus/ava-docs/blob/master/zh_CN/contributing.md)
1313

14-
## 我怎么贡献?
14+
## 我怎么贡献
1515

1616
### 改进文档
1717

18-
作为AVA 的用户你是帮助我们改进文档的最佳候选人,修改拼写错误,修复错误,更好的解释,更多的例子等等。为一些可以改进的事情提问题,[帮助我们翻译文档](https://github.com/sindresorhus/ava-docs),不管任何事情,即使是改善现在这个文档。
18+
作为 AVA 的用户你是帮助我们改进文档的最佳候选人,修改拼写错误,修复错误,更好的解释,更多的例子等等。为一些可以改进的事情提问题,[帮助我们翻译文档](https://github.com/sindresorhus/ava-docs),不管任何事情,即使是改善现在这个文档。
1919

2020
### 改善问题
2121

2222
一些问题在创建时缺少信息,不能重现,描述太过简单无效,帮助我们将他们变得更容易处理,因为处理问题需要大量时间,我们情愿将时间花在修复缺陷和添加新功能上面。
2323

2424
### 在问题中给出反馈
2525

26-
我们总是在问题跟踪器上寻找更多的讨论意见,这是一个影响AVA 未来发展方向的好机会。
26+
我们总是在问题跟踪器上寻找更多的讨论意见,这是一个影响 AVA 未来发展方向的好机会。
2727

2828
### 在我们的聊天室中闲聊
2929

3030
我们有一个[聊天室](https://gitter.im/sindresorhus/ava),可以进到里面潜水,跟我们聊天,或者帮助其他人。
3131

3232
### 提交问题
3333

34-
- 问题跟踪器是针对问题的,请使用我们的[聊天室](https://gitter.im/sindresorhus/ava)或者[Stack Overflow](https://stackoverflow.com/questions/tagged/ava)来寻求支持。
34+
- 问题跟踪器是针对问题的,请使用我们的[聊天室](https://gitter.im/sindresorhus/ava) 或者 [Stack Overflow](https://stackoverflow.com/questions/tagged/ava) 来寻求支持。
3535
- 在新开一个问题之前先搜索以前的问题。
36-
- 确保你使用的是最新版本的AVA
36+
- 确保你使用的是最新版本的 AVA
3737
- 用一个清晰和描述性好的标题。
3838
- 包含尽可能多的信息:重现问题的步骤,错误的信息,Node.js 的版本,操作系统等。
3939
- 在问题的描述上你花越多时间,越多的信息将给到我们。
4040
- [最好的问题提交方式是提供一个失败的测试案例。](https://twitter.com/sindresorhus/status/579306280495357953)
4141

42-
### 提交一个pull rquest
42+
### 提交一个 pull rquest
4343

4444
- 重大的修改最好是先开一个问题来进行讨论,这样可以避免你做一些不必要的工作。
45-
- 对于长期远大的任务,你应该将你所做的工作在社区中提出来并尽快得到反馈,尽快开一个能证明你想法的最简版本的pull request。在前期,不需要把事情做得完美,或者100%完成,只需要在标题添加一个[WIP]前缀,然后描述哪些工作你需要继续做的。这样评审人员就不会挑剔其中的小细节或者指出哪些你已经知道的改进点。
45+
- 对于长期远大的任务,你应该将你所做的工作在社区中提出来并尽快得到反馈,尽快开一个能证明你想法的最简版本的 pull request。在前期,不需要把事情做得完美,或者 100% 完成,只需要在标题添加一个 [WIP] 前缀,然后描述哪些工作你需要继续做的。这样评审人员就不会挑剔其中的小细节或者指出哪些你已经知道的改进点。
4646
- 新功能应该具备测试和文档。
4747
- 不要包含不相关的修改。
48-
- 在提交pull request 之前检查代码和运行测试,通过执行`$ npm test`命令来完成。
49-
- 在一个[主题分支](https://github.com/dchelimsky/rspec/wiki/Topic-Branches)中提交pull request 而不是master 分支。
50-
- 为pull request 和commit 使用一个清晰和描述性强的标题。
51-
- 写一个让人信服的描述来说明为什么我们要接受你的pull request。说服我们是你的工作,需要回答“为什么”并提供用例。
52-
- 你可能被要求修改你的pull request,但绝对没有必要去新开一个pull request,[只需要更新原来那个就可以了。](https://github.com/RichardLitt/docs/blob/master/amending-a-commit-guide.md)
48+
- 在提交 pull request 之前检查代码和运行测试,通过执行`$ npm test`命令来完成。
49+
- 在一个[主题分支](https://github.com/dchelimsky/rspec/wiki/Topic-Branches) 中提交 pull request 而不是 master 分支。
50+
- 为 pull request 和 commit 使用一个清晰和描述性强的标题。
51+
- 写一个让人信服的描述来说明为什么我们要接受你的 pull request。说服我们是你的工作,需要回答“为什么”并提供用例。
52+
- 你可能被要求修改你的 pull request,但绝对没有必要去新开一个 pull request,[只需要更新原来那个就可以了。](https://github.com/RichardLitt/docs/blob/master/amending-a-commit-guide.md)

zh_CN/docs/recipes/browser-testing.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
___
22
**备注**
33

4-
这是[browser-testing.md](https://github.com/sindresorhus/ava/blob/master/docs/recipes/browser-testing.md)的简体中文翻译。这个[链接](https://github.com/sindresorhus/ava/compare/master...zhaozhiming:master)用来查看本翻译与AVA 的master 分支是否有差别(如果你没有看到`browser-testing.md`发生变化,那就意味着这份翻译文档是最新的)。
4+
这是 [browser-testing.md](https://github.com/sindresorhus/ava/blob/master/docs/recipes/browser-testing.md) 的简体中文翻译。这个[链接](https://github.com/sindresorhus/ava/compare/8e2f3dca177a4283ad882596d3c1425cabb998ef...master#diff-9d3d394077fa7f97cbbb0fefc098ac60) 用来查看本翻译与 AVA 的 master 分支是否有差别(如果你没有看到`browser-testing.md`发生变化,那就意味着这份翻译文档是最新的)。
55
___
66

7-
# 设置AVA 做浏览器测试
7+
# 设置 AVA 做浏览器测试
88

9-
翻译: [Français](https://github.com/sindresorhus/ava-docs/blob/master/fr_FR/docs/recipes/browser-testing.md), [Русский](https://github.com/sindresorhus/ava-docs/blob/master/ru_RU/docs/recipes/browser-testing.md), [简体中文](https://github.com/sindresorhus/ava-docs/blob/master/zh_CN/docs/recipes/browser-testing.md)
9+
翻译[Français](https://github.com/sindresorhus/ava-docs/blob/master/fr_FR/docs/recipes/browser-testing.md), [Русский](https://github.com/sindresorhus/ava-docs/blob/master/ru_RU/docs/recipes/browser-testing.md), [简体中文](https://github.com/sindresorhus/ava-docs/blob/master/zh_CN/docs/recipes/browser-testing.md)
1010

1111

1212

13-
AVA[](https://github.com/sindresorhus/ava/issues/24)不支持在浏览器中运行测试。一些库要求浏览器指定全局变量(`window`, `document`, `navigator`等等)。
14-
React 就是其中的一个例子,最低要求如果你想用ReactDOM.render 和用ReactTestUTils 模拟事件。
13+
AVA[](https://github.com/sindresorhus/ava/issues/24) 不支持在浏览器中运行测试。一些库要求浏览器指定全局变量(`window`, `document`, `navigator`等等)。
14+
React 就是其中的一个例子,最低要求如果你想用 ReactDOM.render 和用 ReactTestUTils 模拟事件。
1515

1616
这个秘方让需要模拟浏览器环境的库可以工作。
1717

18-
## 安装jsdom
18+
## 安装 jsdom
1919

20-
安装[jsdom](https://github.com/tmpvar/jsdom)
20+
安装 [jsdom](https://github.com/tmpvar/jsdom)
2121

22-
> 一个WHATWG DOM 和HTML 标准的JavaScript 实现,给node.js 使用的。
22+
> 一个 WHATWG DOM 和 HTML 标准的 JavaScript 实现,给 node.js 使用的。
2323
2424
```
2525
$ npm install --save-dev jsdom
2626
```
2727

28-
## 设置jsdom
28+
## 设置 jsdom
2929

30-
创建一个helper 文件并放在`test/helpers`文件夹中,这样确保AVA 不会把它当成测试来处理。
30+
创建一个 helper 文件并放在`test/helpers`文件夹中,这样确保 AVA 不会把它当成测试来处理。
3131

3232
`test/helpers/setup-browser-env.js`:
3333

@@ -37,9 +37,9 @@ global.window = document.defaultView;
3737
global.navigator = window.navigator;
3838
```
3939

40-
## 配置测试使用jsdom
40+
## 配置测试使用 jsdom
4141

42-
配置AVA,将`require`设置为helper 文件,这样每个测试运行前都会先加载它。
42+
配置 AVA,将`require`设置为 helper 文件,这样每个测试运行前都会先加载它。
4343

4444
`package.json`:
4545

@@ -53,9 +53,9 @@ global.navigator = window.navigator;
5353
}
5454
```
5555

56-
## 享受!
56+
## 享受
5757

58-
编写你的测试并享受一个模拟的window 对象吧。
58+
编写你的测试并享受一个模拟的 window 对象吧。
5959

6060
`test/my.react.test.js`:
6161

0 commit comments

Comments
 (0)