1. 首页
  2. 考试认证
  3. 其它
  4. refute [JavaScript]反驳是“assert.not*”断言库

refute [JavaScript]反驳是“assert.not*”断言库

上传者: 2024-10-21 10:10:09上传 ZIP文件 5.85KB 热度 1次

反驳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);

用户评论