jest-match-object-close-to

时间:2021-05-27 19:33:11
【文件属性】:
文件名称:jest-match-object-close-to
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-27 19:33:11
JavaScript 玩笑匹配对象接近 扩展Jest以能够将具有数字值的对象/数组比较到指定的小数位数。 默认情况下,将这些值与10个小数位进行比较。 不支持嵌套对象/数组。 安装 $ npm install --save-dev jest-match-object-close-to $ yarn add --dev jest-match-object-close-to 用法 import { toMatchObjectCloseTo } from 'jest-match-object-close-to' ; expect . extend ( { toMatchObjectCloseTo } ) ; describe ( 'sample tests' , ( ) => { it ( 'should match object with default 10 decimal places precisi
【文件预览】:
jest-match-object-close-to-master
----.gitignore(115B)
----.eslintrc(175B)
----package.json(1KB)
----src()
--------index.js(5KB)
--------__tests__()
----LICENSE(1KB)
----babel.config.json(39B)
----README.md(992B)
----index.d.ts(408B)

网友评论