{"id":16980217,"url":"https://github.com/whiteinge/rx-collectionassert","last_synced_at":"2026-05-16T21:02:25.437Z","repository":{"id":57355877,"uuid":"67389386","full_name":"whiteinge/rx-collectionassert","owner":"whiteinge","description":"A port of the collectionassert function in the RxJS docs using Node's assert lib","archived":false,"fork":false,"pushed_at":"2016-09-05T05:07:24.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-28T19:52:23.065Z","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/whiteinge.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":"2016-09-05T05:01:44.000Z","updated_at":"2017-01-25T19:15:16.000Z","dependencies_parsed_at":"2022-09-05T22:12:43.352Z","dependency_job_id":null,"html_url":"https://github.com/whiteinge/rx-collectionassert","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/whiteinge/rx-collectionassert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whiteinge%2Frx-collectionassert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whiteinge%2Frx-collectionassert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whiteinge%2Frx-collectionassert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whiteinge%2Frx-collectionassert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whiteinge","download_url":"https://codeload.github.com/whiteinge/rx-collectionassert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whiteinge%2Frx-collectionassert/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264559646,"owners_count":23628040,"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-10-14T01:50:26.925Z","updated_at":"2026-05-16T21:02:20.402Z","avatar_url":"https://github.com/whiteinge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rx-collectionassert\n\nA port of [assertEqual from the RxJS\ndocs](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/gettingstarted/testing.md)\nto work with Node's assert lib.\n\n(I got tired of copy-and-pasting this between projects.)\n\n## Usage\n\nThis works with any testing lib in Node; example below using\n[tape](https://github.com/substack/tape).\n\n```js\nvar test = require('tape');\nvar Rx = require('rx'),\n    ReactiveTest = Rx.ReactiveTest;\n\nvar collectionAssert = require('rx-collectionassert');\n\ntest('An RxJS test', function(assert) {\n    var scheduler = new Rx.TestScheduler();\n\n    var source = scheduler.createHotObservable(\n        ReactiveTest.onNext(250, 'foo'),\n        ReactiveTest.onNext(260, 'bar'),\n        ReactiveTest.onCompleted(270));\n\n    var results = scheduler.startScheduler(function() {\n        return source.map(x =\u003e x);\n    }, {created: 100, subscribed: 200, disposed: 500});\n\n    collectionAssert.assertEqual(results.messages, [\n        ReactiveTest.onNext(250, 'foo'),\n        ReactiveTest.onNext(260, 'bar'),\n        ReactiveTest.onCompleted(270),\n    ]);\n\n    assert.end();\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhiteinge%2Frx-collectionassert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhiteinge%2Frx-collectionassert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhiteinge%2Frx-collectionassert/lists"}