Skip to content

Commit

Permalink
Merge pull request #457 from lhxxxx/patch-2
Browse files Browse the repository at this point in the history
Update 4.14 测试.md
  • Loading branch information
nswbmw committed Sep 20, 2018
2 parents fc40ace + 176f65c commit c842ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/4.14 测试.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 4.14.1 mocha 和 supertest

[mocha](https://www.npmjs.com/package/mocha)[suptertest](https://www.npmjs.com/package/supertest) 是常用的测试组合,通常用来测试 restful 的 api 接口,这里我们也可以用来测试我们的博客应用。
[mocha](https://www.npmjs.com/package/mocha)[supertest](https://www.npmjs.com/package/supertest) 是常用的测试组合,通常用来测试 restful 的 api 接口,这里我们也可以用来测试我们的博客应用。
在 myblog 下新建 test 文件夹存放测试文件,以注册为例讲解 mocha 和 supertest 的用法。首先安装所需模块:

```sh
Expand Down

0 comments on commit c842ec4

Please sign in to comment.