{"id":22289428,"url":"https://github.com/tf/jasmine_eventually","last_synced_at":"2025-09-05T10:40:28.348Z","repository":{"id":1700357,"uuid":"2428963","full_name":"tf/jasmine_eventually","owner":"tf","description":"Not maintained - Asynchronous matching without runs and waitsFor","archived":false,"fork":false,"pushed_at":"2015-07-30T16:20:46.000Z","size":172,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T21:24:41.328Z","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/tf.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":"2011-09-21T10:12:22.000Z","updated_at":"2015-07-30T16:21:02.000Z","dependencies_parsed_at":"2022-09-07T19:00:29.423Z","dependency_job_id":null,"html_url":"https://github.com/tf/jasmine_eventually","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tf/jasmine_eventually","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf%2Fjasmine_eventually","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf%2Fjasmine_eventually/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf%2Fjasmine_eventually/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf%2Fjasmine_eventually/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tf","download_url":"https://codeload.github.com/tf/jasmine_eventually/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tf%2Fjasmine_eventually/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273747642,"owners_count":25160650,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-12-03T17:09:08.268Z","updated_at":"2025-09-05T10:40:23.321Z","avatar_url":"https://github.com/tf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jasmine Eventually\n\n**STATUS: Not maintained**\n\n---\n\nAsynchronous matching without `runs` and `waitsFor`.\n\n### Usage\n\n```javascript\ndescribe('jasmineEventually', function() {\n  it('allows to match asynchronously with implicit polling', function() {\n    var spy = jasmine.createSpy();\n\n    setTimeout(function() {\n      spy();\n    }, 100);\n\n    expect(spy).eventually.toHaveBeenCalled();\n  });\n});\n```\n\nis equivalent to\n\n```javascript\ndescribe('jasmineEventually', function() {\n  it('allows to match asynchronously with implicit polling', function() {\n    var spy = jasmine.createSpy();\n\n    setTimeout(function() {\n      spy();\n    }, 100);\n\n    waitsFor(function() {\n      return spy.wasCalled;\n    });\n\n    runs(function() {\n      expect(spy).toHaveBeenCalled();\n    });\n  });\n});\n```\n\n`eventually` inserts a `waitsFor` block which silences the matcher\noutput and polls its result until it becomed `true`.\n\n### Here be Dragons\n\n`eventually` only works for matchers which use the `actual` object\npassed to `expect` as a reference.  The following will not work:\n\n```javascript\ndescribe('jasmineEventually', function() {\n  it('can not operate on primitive types', function() {\n    var elapsed = false;\n\n    setTimeout(function() {\n      elapsed = true;\n    }, 100);\n\n    // WILL NOT WORK\n    expect(elapsed).eventually.toBeTruthy();\n  });\n});\n```\n\n`elapsed` is passed as a value.  Setting the variable to `true` later\non does not change the value visibile inside the matcher.\n\n### Installation\n\nJust link `src/jasmine_eventually.js` from your jasmine spec runner\nand put this setup somewhere inside your support files:\n\n```javascript\nbeforeEach(function() {\n  jasmineEventually.setup();\n});\n```\n\n### License\n\nPlease fork and improve.\n\nCopyright (c) 2011 Tim Fischbach. This software is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftf%2Fjasmine_eventually","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftf%2Fjasmine_eventually","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftf%2Fjasmine_eventually/lists"}