{"id":15912804,"url":"https://github.com/alexlafroscia/testdouble-qunit","last_synced_at":"2025-08-21T07:16:48.557Z","repository":{"id":31189172,"uuid":"127095736","full_name":"alexlafroscia/testdouble-qunit","owner":"alexlafroscia","description":"Verify testdouble stubs with QUnit","archived":false,"fork":false,"pushed_at":"2024-12-30T04:51:29.000Z","size":2192,"stargazers_count":1,"open_issues_count":7,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T07:45:56.809Z","etag":null,"topics":["qunit","stubs","testdouble","verify"],"latest_commit_sha":null,"homepage":"https://alexlafroscia.github.io/testdouble-qunit","language":"TypeScript","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/alexlafroscia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-03-28T06:40:49.000Z","updated_at":"2024-12-10T11:09:12.000Z","dependencies_parsed_at":"2024-01-17T07:23:17.272Z","dependency_job_id":"c5c54e5e-ed0b-43b5-a3a7-32a74c55ef97","html_url":"https://github.com/alexlafroscia/testdouble-qunit","commit_stats":{"total_commits":209,"total_committers":4,"mean_commits":52.25,"dds":0.3588516746411483,"last_synced_commit":"f811d54095b7f971fe40b43e5bd6d622b833437b"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexlafroscia%2Ftestdouble-qunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexlafroscia%2Ftestdouble-qunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexlafroscia%2Ftestdouble-qunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexlafroscia%2Ftestdouble-qunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexlafroscia","download_url":"https://codeload.github.com/alexlafroscia/testdouble-qunit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232308562,"owners_count":18503117,"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":["qunit","stubs","testdouble","verify"],"created_at":"2024-10-06T16:21:05.799Z","updated_at":"2025-01-03T19:55:45.704Z","avatar_url":"https://github.com/alexlafroscia.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testdouble-qunit\n\n[![CI](https://github.com/alexlafroscia/testdouble-qunit/workflows/CI/badge.svg)](https://github.com/alexlafroscia/testdouble-qunit/actions?query=workflow%3ACI)\n\n\u003e Verify [`testdouble`][testdouble] stubs with [`QUnit`][qunit]\n\nThis library adds a `assert.verify` method to `QUnit` that allows you to verify that your stubs are called correctly.\n\n```javascript\ntest('the stub is called', function(assert) {\n  const stub = td.function();\n\n  stub('foo');\n\n  assert.verify(stub('foo'));\n});\n```\n\nThe signature of `assert.verify` is the same as `td.verify`.\n\n## Installation\n\nFirst, install the library. [`QUnit`][qunit] and [`testdouble`][testdouble] must also be installed.\n\n```bash\nyarn add -D testdouble-qunit\n```\n\nIn your test set-up code, you need to extend `QUnit` with the added `verify` assertion. You can do so with the following code snippet:\n\n```javascript\nimport QUnit from 'qunit';\nimport td from 'testdouble';\nimport installVerifyAssertion from 'testdouble-qunit';\n\ninstallVerifyAssertion(QUnit, td);\n```\n\nIf you are using this package with Ember.js, you should put this in your `tests/test-helper.js` file\n\n[testdouble]: https://github.com/testdouble/testdouble.js/\n[qunit]: https://qunitjs.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexlafroscia%2Ftestdouble-qunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexlafroscia%2Ftestdouble-qunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexlafroscia%2Ftestdouble-qunit/lists"}