refute [JavaScript]反驳是“assert.not*”断言库
反驳refute是“assert.not*”断言库。它的灵感来自。安装npm install --save-dev refute
。
用法
refute继承自(Node's Assert)。
var assert = require(\"assert\");
var refute = require(\"refute\")(assert);
应用程序接口
refute(false);
refute.equal = assert.notEqual.bind(assert);
refute.strictEqual = assert.notStrictEqual.bind(assert);
refute.deepEqual = assert.notDeepEqual.bind(assert);
用户评论