{"id":21291825,"url":"https://github.com/testingrequired/multiassert","last_synced_at":"2025-03-15T16:37:35.380Z","repository":{"id":44082693,"uuid":"202908288","full_name":"testingrequired/multiassert","owner":"testingrequired","description":"Multiple assertions","archived":false,"fork":false,"pushed_at":"2023-01-04T07:27:35.000Z","size":526,"stargazers_count":1,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T06:28:15.709Z","etag":null,"topics":["assert","test","testing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/testingrequired.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-17T16:52:37.000Z","updated_at":"2020-07-14T08:31:21.000Z","dependencies_parsed_at":"2023-02-02T03:16:33.997Z","dependency_job_id":null,"html_url":"https://github.com/testingrequired/multiassert","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/testingrequired%2Fmultiassert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingrequired%2Fmultiassert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingrequired%2Fmultiassert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingrequired%2Fmultiassert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testingrequired","download_url":"https://codeload.github.com/testingrequired/multiassert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243762229,"owners_count":20343972,"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":["assert","test","testing"],"created_at":"2024-11-21T13:46:19.258Z","updated_at":"2025-03-15T16:37:35.360Z","avatar_url":"https://github.com/testingrequired.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @testingrequired/multiassert\n\nMultiple assertions\n\n## Install\n\n```bash\n$ npm i -D @testingrequired/multiassert\n```\n\n## Usage\n\n```javascript\nimport multiassert, { assert } from \"@testingrequired/multiassert\";\n\nconst point = {\n  x: 1\n};\n\ntry {\n  multiassert(\n    assert(point.x, \"x not defined\"),\n    assert(point.y, \"y not defined\"),\n    assert(point.z, \"z not defined\")\n  );\n} catch (e) {\n  e.message === \"AssertionError: y undefined,AssertionError: z undefined\";\n  e.errors[0].message === \"AssertionError: y undefined\";\n  e.errors[1].message === \"AssertionError: z undefined\";\n}\n```\n\n### multiassert(...tests)\n\nThe `multiassert` function accepts lazily evaluated asserts that throw exceptions.\n\n### assert(condition, message?)\n\nAlias for: [@testingrequired/lazy-assert](https://github.com/testingrequired/lazy-assert)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestingrequired%2Fmultiassert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestingrequired%2Fmultiassert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestingrequired%2Fmultiassert/lists"}