daspec-js-quantity-matchers:DaSpec的数量单位匹配器

时间:2024-06-03 05:35:28
【文件属性】:

文件名称:daspec-js-quantity-matchers:DaSpec的数量单位匹配器

文件大小:4KB

文件格式:ZIP

更新时间:2024-06-03 05:35:28

JavaScript

DaSpec的数量单位匹配器,借助出色的库,您可以使用不同的单位比较数量。 例子 expect(actualLength).quantityToEqual('10km') expect(actualArea).quantityToBeLessThan('10m^2') expect(actualWeight).quantityToBeGreaterThan('3kg') expect(actualSpeed).quantityToBeLessThan('10 m/s') expect(actualHeight).quantityToBeGreaterThanOrEqual('10 ft') 安装 使用NPM安装数量匹配器: npm install daspec-quantity-matchers --save-dev daspec-quantity-matchers运行daspec时,


【文件预览】:
daspec-js-quantity-matchers-master
----.jshintrc(213B)
----.gitignore(42B)
----.jscsrc(86B)
----package.json(849B)
----src()
--------quantity-matchers.js(1KB)
----spec()
--------support()
--------quantity-matchers-spec.js(7KB)
----README.md(1KB)

网友评论