{"id":16125503,"url":"https://github.com/semibran/test-format","last_synced_at":"2025-06-19T01:39:03.110Z","repository":{"id":130492157,"uuid":"93102376","full_name":"semibran/test-format","owner":"semibran","description":"Format minimal tests","archived":false,"fork":false,"pushed_at":"2017-06-01T22:12:17.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T01:48:54.976Z","etag":null,"topics":["format","tests"],"latest_commit_sha":null,"homepage":null,"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/semibran.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-01T21:48:29.000Z","updated_at":"2017-06-01T21:50:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"9283f2cb-fb53-47e1-b6d9-85f2c75954e0","html_url":"https://github.com/semibran/test-format","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/semibran/test-format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Ftest-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Ftest-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Ftest-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Ftest-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semibran","download_url":"https://codeload.github.com/semibran/test-format/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Ftest-format/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260665189,"owners_count":23044267,"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":["format","tests"],"created_at":"2024-10-09T21:29:51.003Z","updated_at":"2025-06-19T01:38:58.093Z","avatar_url":"https://github.com/semibran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test-format\n\u003e Format minimal tests\n\nA test is an object with the fields `name`, `expected`, and `result`:\n```js\nconst format = require('test-format')\n\nvar test = {\n  name: 'NaN',\n  expected: true,\n  result: NaN === NaN\n}\n\nconsole.log(format(test))\n// -\u003e '✖ NaN'\n```\n\nSince formatted tests are just plain strings, logging multiple test results is a breeze.\n```js\nconsole.log(tests.map(format).join('\\n'))\n```\n\n## install\n```sh\nnpm install test-format\n```\n\n## license\n[MIT](https://opensource.org/licenses/MIT) © [Brandon Semilla](https://git.io/semibran)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Ftest-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemibran%2Ftest-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Ftest-format/lists"}