chai-dom:使用普通JavaScript的Chai断言库的DOM断言

时间:2021-05-06 16:18:26
【文件属性】:
文件名称:chai-dom:使用普通JavaScript的Chai断言库的DOM断言
文件大小:76KB
文件格式:ZIP
更新时间:2021-05-06 16:18:26
JavaScript 精神病 chai-dom是断言库的扩展,在使用DOM(特别是和 )时,它提供了一组断言。 从派生出来,用于我们这些摆脱了jQuery负担的人。 断言 attr(name[, value]) attribute(name[, value]) 使用 具有给定的属性。 也可以选择声明一个特定值。 返回值可用于链接。 document . getElementById ( 'header' ) . should . have . attr ( 'foo' ) expect ( document . querySelector ( 'main article' ) ) . to . have . attribute ( 'foo' , 'bar' ) expect ( document . querySelector ( 'main article' ) ) . to . have . at
【文件预览】:
chai-dom-master
----.gitignore(23B)
----README.md(9KB)
----test()
--------.eslintrc(107B)
--------tests.js(35KB)
--------index.html(802B)
----testem.js(587B)
----LICENSE(1KB)
----chai-dom.js(12KB)
----.eslintrc(441B)
----bower.json(560B)
----package.json(939B)
----.travis.yml(187B)
----package-lock.json(244KB)

网友评论