jasmine-underscore:Jasmine框架的下划线匹配器

时间:2021-05-13 23:06:54
【文件属性】:
文件名称:jasmine-underscore:Jasmine框架的下划线匹配器
文件大小:38KB
文件格式:ZIP
更新时间:2021-05-13 23:06:54
JavaScript 茉莉花下划线 jasmine-underscore为 JavaScript测试框架提供了两个扩展: 对象函数隐式定义的匹配器 将示例写入规范的方法 安装 只需从获取jasmine-underscore.js并将其包含在您的Jasmine的测试运行器文件中(或将Ruby与一起使用,即可将其添加到jasmine.yml文件中)。 您还需要 。 下划线匹配器 下划线有许多询问状态的方法。 任何以“ is”为前缀的下划线功能都可以用作匹配器: toBeEmpty() expect([]).toBeEmpty(); toBeElement() expect(document.body).toBeElement(); toBeArray() expect([1]).toBeArray(); toBeObject() expect({}).toBeObject(); toBeArgu
【文件预览】:
jasmine-underscore-master
----MIT.LICENSE(1KB)
----spec-runner.html(878B)
----README.markdown(3KB)
----spec()
--------jasmine-underscore-spec.js(4KB)
----.gitignore(10B)
----lib()
--------jasmine-underscore.js(2KB)
--------external()

网友评论