【文件属性】:
文件名称:chai-joi:用于Joi验证的Chai扩展
文件大小:25KB
文件格式:ZIP
更新时间:2021-05-12 04:33:19
JavaScript
柴jo
用Joi特定断言扩展Chai。
TL; DL
假设该result是Joi验证的结果:
断言风格
chai.assert.isValidation(结果)
BDD风格
结果。应该
[.not] .be.a.validation
[.not] .validate
[.not] .have.an.error
[.not] .have.a.value
[.not] .have.errmsgs
[.not] .have.errmsgs.that.include(str)
[.not] .have.errmsg(str)
TDD风格
期望(结果)。到
[.not] .be.a.validation
[.not] .validate
[.not] .have.an.error
[.not] .have.a.value
[.not] .have.errmsgs
[
【文件预览】:
chai-joi-master
----.gitignore(546B)
----README.md(3KB)
----test()
--------chai-joi.js(8KB)
----LICENSE(1KB)
----package.json(673B)
----index.js(5KB)
----.travis.yml(97B)
----package-lock.json(72KB)