Skip to content

Commit

Permalink
void 0
Browse files Browse the repository at this point in the history
  • Loading branch information
alsotang committed Oct 7, 2014
1 parent ff0607b commit 913efa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lesson6/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ https://github.com/cnodejs/nodeclub/blob/master/test/controllers/topic.test.js

should 在 js 的 Object “基类”上注入了一个 `#should` 属性,这个属性中,又有着许许多多的属性可以被访问。

比如测试一个数是不是大于3,则是 `(5).should.above(3)`;测试一个字符串是否有着特定前缀:`'foobar'.should.startWith('foo');`
比如测试一个数是不是大于3,则是 `(5).should.above(3)`;测试一个字符串是否有着特定前缀:`'foobar'.should.startWith('foo');`。API 在:https://github.com/visionmedia/should.js/

should.js 如果现在还是 version 3 的话,我倒是推荐大家去看看它的 API 和 源码;现在 should 是 version 4 了,API 丑得很,但为了不掉队,我还是一直用着它。我觉得 expect 麻烦得很,对了 expect 也是一个断言库:https://github.com/LearnBoost/expect.js/
should.js 如果现在还是 version 3 的话,我倒是推荐大家去看看它的 API 和 源码;现在 should 是 version 4 了,API 丑得很,但为了不掉队,我还是一直用着它。我觉得 expect 麻烦得很,对了expect 也是一个断言库:https://github.com/LearnBoost/expect.js/



Expand Down

0 comments on commit 913efa7

Please sign in to comment.