单独写一个 test.js 的缺点是没法自动运行测试,而且,如果第一个assert报错, ... 注意,很多文章会让你用命令 npm install -g mocha 把mocha安装到全局module中。
確定! 回上一頁