{"id":29189361,"url":"https://github.com/coderaiser/sinon-called-with-diff","last_synced_at":"2025-07-01T23:07:20.354Z","repository":{"id":57361800,"uuid":"87522351","full_name":"coderaiser/sinon-called-with-diff","owner":"coderaiser","description":"add diff to calledWith output of sinon","archived":false,"fork":false,"pushed_at":"2018-11-29T14:27:16.000Z","size":31,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-24T10:50:34.187Z","etag":null,"topics":["called-with","diff","javascript","mock","sinon","stub","tdd","test"],"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/coderaiser.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","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":"2017-04-07T08:18:19.000Z","updated_at":"2019-07-09T10:28:22.000Z","dependencies_parsed_at":"2022-09-18T06:04:28.125Z","dependency_job_id":null,"html_url":"https://github.com/coderaiser/sinon-called-with-diff","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/coderaiser/sinon-called-with-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fsinon-called-with-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fsinon-called-with-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fsinon-called-with-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fsinon-called-with-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/sinon-called-with-diff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fsinon-called-with-diff/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262253865,"owners_count":23282553,"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":["called-with","diff","javascript","mock","sinon","stub","tdd","test"],"created_at":"2025-07-01T23:07:19.642Z","updated_at":"2025-07-01T23:07:20.298Z","avatar_url":"https://github.com/coderaiser.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sinon called with diff [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\nAdd ability to show diff when args are different in [sinon](https://sinonjs.org \"sinon\").\nYou can also replace `sinon` with [stub](https://github.com/cloudcmd/stub) wich is drop-in replacement of `sinon.stub()` with diff support.\n\n## Install\n\n```\nnpm i sinon sinon-called-with-diff --save\n```\n\n## How to use?\n\n```js\nconst diff = require('sinon-called-with-diff');\nconst sinon = diff(require('sinon'));\n\nconst stub = sinon.stub();\n\nstub('hello');\n\nstub.calledWith('world');\n// returns\nfalse\n```\n\nWill produce output:\n\n```sh\nwrong arguments in functionStub\nactual: [\n  \"hello\"\n]\n\nexpected: [\n  \"world\"\n]\n```\n\n## License\n\nMIT\n\n[NPMIMGURL]:                https://img.shields.io/npm/v/sinon-called-with-diff.svg?style=flat\n[BuildStatusIMGURL]:        https://img.shields.io/travis/coderaiser/sinon-called-with-diff/master.svg?style=flat\n[DependencyStatusIMGURL]:   https://img.shields.io/david/coderaiser/sinon-called-with-diff.svg?style=flat\n[LicenseIMGURL]:            https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]:                   https://npmjs.org/package/sinon-called-with-diff \"npm\"\n[BuildStatusURL]:           https://travis-ci.org/coderaiser/sinon-called-with-diff  \"Build Status\"\n[DependencyStatusURL]:      https://david-dm.org/coderaiser/sinon-called-with-diff \"Dependency Status\"\n[LicenseURL]:               https://tldrlegal.com/license/mit-license \"MIT License\"\n\n[CoverageURL]:              https://coveralls.io/github/coderaiser/sinon-called-with-diff?branch=master\n[CoverageIMGURL]:           https://coveralls.io/repos/coderaiser/sinon-called-with-diff/badge.svg?branch=master\u0026service=github\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fsinon-called-with-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Fsinon-called-with-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fsinon-called-with-diff/lists"}