{"id":15642479,"url":"https://github.com/csantero/ember-sinon","last_synced_at":"2025-04-07T06:08:11.554Z","repository":{"id":22720634,"uuid":"26065170","full_name":"csantero/ember-sinon","owner":"csantero","description":"Ember CLI addon adding support for sinon.js","archived":false,"fork":false,"pushed_at":"2023-12-14T17:21:10.000Z","size":684,"stargazers_count":64,"open_issues_count":8,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-09T21:10:04.776Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csantero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2014-11-01T22:32:05.000Z","updated_at":"2023-12-14T17:21:12.000Z","dependencies_parsed_at":"2024-01-09T05:02:02.479Z","dependency_job_id":"887b6dbc-53da-47e2-8121-a9f1881ea04a","html_url":"https://github.com/csantero/ember-sinon","commit_stats":{"total_commits":114,"total_committers":20,"mean_commits":5.7,"dds":0.6754385964912281,"last_synced_commit":"c0f4f4af76b91f636dd778205c473e16287fb674"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csantero%2Fember-sinon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csantero%2Fember-sinon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csantero%2Fember-sinon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csantero%2Fember-sinon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csantero","download_url":"https://codeload.github.com/csantero/ember-sinon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601448,"owners_count":20964864,"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-03T11:56:22.947Z","updated_at":"2025-04-07T06:08:11.527Z","avatar_url":"https://github.com/csantero.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":["Testing"],"readme":"Ember Sinon (_Deprecated_)\n===========\n\n:warning: **Deprecation notice**: `ember-sinon` is deprecated. Consider using [ember-sinon-qunit](https://github.com/elwayman02/ember-sinon-qunit) instead. :warning:\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/csantero/ember-sinon.svg)](https://greenkeeper.io/)\n\n[![Build Status](https://travis-ci.org/csantero/ember-sinon.svg?branch=master)](https://travis-ci.org/csantero/ember-sinon)\n[![Ember Observer Score](http://emberobserver.com/badges/ember-sinon.svg)](http://emberobserver.com/addons/ember-sinon)\n[![Code Climate](https://codeclimate.com/github/csantero/ember-sinon/badges/gpa.svg)](https://codeclimate.com/github/csantero/ember-sinon)\n[![Codacy Badge](https://api.codacy.com/project/badge/grade/b6e21f46906b4847907956ea4806cfa9)](https://www.codacy.com/app/hawker-jordan/ember-sinon)\n\nThis addon adds support for [Sinon](https://github.com/cjohansen/Sinon.JS) to assist in testing your Ember CLI app.\n\n\nCompatibility\n------------------------------------------------------------------------------\n\n* Ember.js v3.12 or above\n* Ember CLI v2.13 or above\n* Node.js v10 or above\n\n\nInstallation\n------------------------------------------------------------------------------\n\n```\nember install ember-sinon\n```\n\n\nUsage\n------------------------------------------------------------------------------\n\nWhile in testing mode (i.e. either when visiting `/tests` or when running `ember test`), `sinon` will be available as an import.\n\n```js\nimport sinon from 'sinon';\n\ntest(\".runCallback() should run the callback passed\", function(assert) {\n  var spy = sinon.spy();\n  this.subject().runCallback(spy);\n\n  // Default Sinon messages:\n  sinon.assert.calledOnce(spy);\n  sinon.assert.calledWith(spy, 'foo');\n\n  // Custom messages:\n  assert.ok(spy.calledOnce, \"the callback should be called once\");\n  assert.ok(spy.calledWith('foo'), \"the callback should be passed 'foo' as an argument\");\n});\n```\n\n## Integration with testing frameworks\n\nCheck out [ember-sinon-qunit](https://github.com/elwayman02/ember-sinon-qunit) for integration with Ember-QUnit!\n\nContributing\n------------------------------------------------------------------------------\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n\nLicense\n------------------------------------------------------------------------------\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsantero%2Fember-sinon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsantero%2Fember-sinon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsantero%2Fember-sinon/lists"}