Asserture
extends assert of node 扩展node原生的Assert功能
Usage 用法
Usage for English is Coming soon...
Start 开始使用
1. 引入
使用nodejs
$ npm install --save assert
const assert = require('asserture');
- 说明:asserture中已经包含原生assert的全部功能,不需要再额外引入assert
扩展功能
isTure(expected, [message])
1. assert.isTure(true); //ok
isStrictTrue(expected, [message])
2. isFalse(expected, [message])
3. isStrictFalse(expected, [message])
4. isNaN(expected, [message])
5. isStrictNaN(expected, [message])
6. Change list 更新日志
v1.0.0
初始化项目
More docs and examples, to be continue... 更多接口文档的案例,未完待补充...