{"id":18657780,"url":"https://github.com/lightsofapollo/sinon-expect","last_synced_at":"2025-04-11T18:31:43.472Z","repository":{"id":2395917,"uuid":"3362476","full_name":"lightsofapollo/sinon-expect","owner":"lightsofapollo","description":"Sinon Matchers for expect.","archived":false,"fork":false,"pushed_at":"2016-03-16T04:30:23.000Z","size":10,"stargazers_count":13,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T10:07:18.764Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lightsofapollo.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-05T21:51:45.000Z","updated_at":"2024-04-05T11:12:41.000Z","dependencies_parsed_at":"2022-08-25T07:34:23.963Z","dependency_job_id":null,"html_url":"https://github.com/lightsofapollo/sinon-expect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsofapollo%2Fsinon-expect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsofapollo%2Fsinon-expect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsofapollo%2Fsinon-expect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsofapollo%2Fsinon-expect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightsofapollo","download_url":"https://codeload.github.com/lightsofapollo/sinon-expect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248458529,"owners_count":21107096,"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-07T07:29:51.796Z","updated_at":"2025-04-11T18:31:42.995Z","avatar_url":"https://github.com/lightsofapollo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sinon Expect\n\nSinon expect is a wrapper for the assertions built into sinon.\n\nA quick example is:\n\n```javascript\nvar object = {\n  method: function(){}\n};\n\n//Yes we are overriding expect\n//You can also save it to another variable but that is ugly\nexpect = require('sinon-expect').enhance(expect, sinon, 'was');\n\nsinon.spy(object, 'method');\n\n//Assert style\nsinon.assert.called(object.method);\n\n//Expect style\n//All assertions are found under the .spy namespace/\"flag\"\nexpect(object.method).was.called();\n```\n\n## List Of Supported Assertions/Matchers\n\nSee [Sinon Assertions](http://sinonjs.org/docs/#assertions)\nfor additional documentation for each of these assertions.\n\n\nDrop the first argument (the spy) otherwise the method signature\nis the same.\n\n  - notCalled\n  - called\n  - calledOnce\n  - calledTwice\n  - calledThrice\n  - callCount\n  - callOrder\n  - calledOn\n  - alwaysCalledOn\n  - calledWith\n  - alwaysCalledWith\n  - neverCalledWith\n  - calledWithExactly\n  - alwaysCalledWithExactly\n  - threw\n  - alwaysThrew\n\n# License \n\nMIT (see LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightsofapollo%2Fsinon-expect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightsofapollo%2Fsinon-expect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightsofapollo%2Fsinon-expect/lists"}