{"id":19777502,"url":"https://github.com/ilib-js/assertextras","last_synced_at":"2026-04-16T17:02:45.256Z","repository":{"id":57185070,"uuid":"249627853","full_name":"iLib-js/assertExtras","owner":"iLib-js","description":"Used to extend the assertion types available in nodeunit","archived":false,"fork":false,"pushed_at":"2020-06-16T21:01:33.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-11T01:49:52.932Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iLib-js.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":"2020-03-24T06:14:02.000Z","updated_at":"2020-06-16T21:00:42.000Z","dependencies_parsed_at":"2022-09-14T10:11:11.371Z","dependency_job_id":null,"html_url":"https://github.com/iLib-js/assertExtras","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2FassertExtras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2FassertExtras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2FassertExtras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iLib-js%2FassertExtras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iLib-js","download_url":"https://codeload.github.com/iLib-js/assertExtras/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241107734,"owners_count":19910975,"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-11-12T05:25:17.864Z","updated_at":"2026-04-16T17:02:40.226Z","avatar_url":"https://github.com/iLib-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# assertExtras\n\nUsed to extend the assertion types available in nodeunit. To use, simply call:\n\n```javascript\nvar assert = require(\"nodeunit/lib/assert\");\nrequire(\"assertextras\")(assert);\n```\n\nAt the top of you test suite, and it will monkey-patch the assertions in nodeunit\nto add the following types of assertions:\n\n- equalIgnoringOrder: compare the contents of arrays without regard to the order\nof the array elements\n- roughlyEqual: compare two numbers within a threshold amount. Used mostly for\nfloating point numbers to make sure they are close enough\n- contains: make sure all the properties in the expected object also exist\nin the actual object. The actual object may have more properties. The ones\nin the expected object must exist, and anything else is optional.\n\n# Release Notes\n\nv1.1.0\n\nAdded updated assert.deepEqual. The old deepEqual would throw \nexceptions if one of the two objects passed in were undefined or null.\nThe part of object equality checking which checks if the objects are\nprimitives would dereference the objects to call their valueOf()\nmethods. Of course, you can't dereference undefined or null, so the\nexception would get thrown.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Fassertextras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filib-js%2Fassertextras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filib-js%2Fassertextras/lists"}