{"id":15536509,"url":"https://github.com/turbo87/chai-roughly","last_synced_at":"2025-04-23T13:44:55.793Z","repository":{"id":41190267,"uuid":"59132700","full_name":"Turbo87/chai-roughly","owner":"Turbo87","description":"deep equals assertions with tolerance for chai","archived":false,"fork":false,"pushed_at":"2019-03-17T04:07:22.000Z","size":6,"stargazers_count":11,"open_issues_count":4,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T09:53:32.570Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Turbo87.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-18T16:24:01.000Z","updated_at":"2022-10-30T21:49:03.000Z","dependencies_parsed_at":"2022-09-03T03:01:02.945Z","dependency_job_id":null,"html_url":"https://github.com/Turbo87/chai-roughly","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fchai-roughly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fchai-roughly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fchai-roughly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turbo87%2Fchai-roughly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turbo87","download_url":"https://codeload.github.com/Turbo87/chai-roughly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250441905,"owners_count":21431235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T11:52:15.206Z","updated_at":"2025-04-23T13:44:55.777Z","avatar_url":"https://github.com/Turbo87.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nchai-roughly\n==============================================================================\n\n[![Build Status](https://travis-ci.org/Turbo87/chai-roughly.svg?branch=master)](https://travis-ci.org/Turbo87/chai-roughly)\n[![Build status](https://ci.appveyor.com/api/projects/status/github/Turbo87/chai-roughly?svg=true)](https://ci.appveyor.com/project/Turbo87/chai-roughly/branch/master)\n[![npm](https://img.shields.io/npm/v/chai-roughly.svg)](https://www.npmjs.com/package/chai-roughly)\n\ndeep equals assertions with tolerance for chai\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nnpm install --save-dev chai-roughly\n```\n\nUsage\n------------------------------------------------------------------------------\n\nAfter importing `chai` add the following code to use `chai-roughly` assertions:\n\n```js\nvar chai = require('chai');\nvar expect = chai.expect;\n\nchai.use(require('chai-roughly'));\n```\n\nNow you can use the `expect(...).to.roughly.deep.equal(...)` chain for deep\nequals assertions with tolerance for numbers. The default tolerance is `1e-6`\nand can be overwritten by using e.g.\n`expect(...).to.roughly(0.001).deep.equal(...)`.\n\n```js\nit('works', function() {\n  expect({ value: 42 }).to.roughly.deep.equal({ value: 41.9999999 });\n});\n```\n\n\nLicense\n------------------------------------------------------------------------------\nchai-roughly is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbo87%2Fchai-roughly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbo87%2Fchai-roughly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbo87%2Fchai-roughly/lists"}