My favourite way to test is using assert to write tests, and mocha to run them. Example. Here's a simple Node module we want to test, in lib/ ...
確定! 回上一頁