{"id":18467132,"url":"https://github.com/srounce/redux-observable-expect","last_synced_at":"2025-07-08T20:36:21.889Z","repository":{"id":57351154,"uuid":"102604930","full_name":"srounce/redux-observable-expect","owner":"srounce","description":"Straightforward testing for redux-observable epics.","archived":false,"fork":false,"pushed_at":"2017-09-06T12:36:12.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T17:56:22.442Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srounce.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":"2017-09-06T12:20:08.000Z","updated_at":"2017-09-06T12:21:44.000Z","dependencies_parsed_at":"2022-09-18T23:41:09.339Z","dependency_job_id":null,"html_url":"https://github.com/srounce/redux-observable-expect","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/srounce%2Fredux-observable-expect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srounce%2Fredux-observable-expect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srounce%2Fredux-observable-expect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srounce%2Fredux-observable-expect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srounce","download_url":"https://codeload.github.com/srounce/redux-observable-expect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252533686,"owners_count":21763640,"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-06T09:18:58.115Z","updated_at":"2025-05-05T16:33:52.970Z","avatar_url":"https://github.com/srounce.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redux-observable-expect\nTest redux-observable epics with ease.\n\n## Problem\n\u003e \"I've written unit tests for my redux-observable epic(s) and have a lot of\n\u003e test boilerplate. How can I reduce this barrier-to-test?\"\n\n## API\n```javascript\nexpectEpic(\n  epic: (action$: Observable\u003cany\u003e, store: ReduxStore) =\u003e Observable\u003cany\u003e,\n  condition$: Observable,\n  expect$: Observable,\n  assert: (a: any, b: any) =\u003e ?boolean,\n  done: () =\u003e ?any,\n  store: ReduxStore\n)\n```\n\n* **epic:** The redux-observable 'epic' function you would like to test.\n* **condition$:** The input actions for the test case.\n* **expect$:** The stream of actions to be compared with the stream returned \nfrom **epic**.\n* **assert:** A function which compares actions from the **epic** with the \ncontents of **expect$**\n* **done:** Completion callback (usually provided by your test runner).\n* **store:** _(Optional)_ A redux store, will be needed if your epic consumes \ndata from the store.\n\n## Example\n```javascript\nimport expectEpic from 'redux-observable-expect'\n\nexpectEpic(\n  myAwesomeEpic\n  of({ type: TRIGGER_TYPE }),\n  of(\n    { type: EXPECTED_TYPE },\n    { type: ANOTHER_EXPECTED_TYPE }\n    ),\n  (a, b) =\u003e expect(a).toEqual(b),\n  done\n)\n```\n\n## Contributing\nThis project uses JS standard style.\n\nAdd stuff, write tests, make tests \u0026 linting pass, send a PR.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrounce%2Fredux-observable-expect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrounce%2Fredux-observable-expect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrounce%2Fredux-observable-expect/lists"}