{"id":20461027,"url":"https://github.com/ericgj/ministub","last_synced_at":"2026-04-20T14:32:16.116Z","repository":{"id":138271941,"uuid":"9966266","full_name":"ericgj/ministub","owner":"ericgj","description":"Simple javascript stub utility translated from Ruby's MiniTest","archived":false,"fork":false,"pushed_at":"2013-05-12T03:58:23.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T11:34:07.639Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericgj.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2013-05-09T19:04:08.000Z","updated_at":"2013-12-30T23:19:18.000Z","dependencies_parsed_at":"2023-03-11T07:25:43.764Z","dependency_job_id":null,"html_url":"https://github.com/ericgj/ministub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericgj/ministub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fministub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fministub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fministub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fministub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericgj","download_url":"https://codeload.github.com/ericgj/ministub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fministub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32050898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-15T12:22:54.878Z","updated_at":"2026-04-20T14:32:16.100Z","avatar_url":"https://github.com/ericgj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# ministub\n\n  Simple stub utility translated from Ruby's [MiniTest][mt]\n\n## Installation\n\n    $ component install ericgj/ministub\n\n## API\n\n### Stub( obj, name, val_or_fn, fn )\n\n  Stub the method `name` of `obj` with `val_or_fn` for the duration of block `fn`.\n\n## Examples\n\n```javascript\n\nvar stub = require('ministub');\n\nvar foo = { bar: 'bar' };\n\nstub(foo, 'bar', 'baz', function(){\n  foo.bar  // 'baz'\n});\n\nfoo.bar  // 'bar'\n\n```\n\n## License\n\n  MIT\n\n[mt]: https://github.com/seattlerb/minitest\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Fministub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericgj%2Fministub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Fministub/lists"}