{"id":22672255,"url":"https://github.com/jimlynchcodes/request-promise-mockery-example","last_synced_at":"2025-03-29T11:25:04.900Z","repository":{"id":44018171,"uuid":"232024273","full_name":"JimLynchCodes/Request-Promise-Mockery-Example","owner":"JimLynchCodes","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-30T19:24:46.000Z","size":109,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T11:55:19.019Z","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/JimLynchCodes.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":"2020-01-06T04:32:27.000Z","updated_at":"2020-01-08T04:45:49.000Z","dependencies_parsed_at":"2023-01-31T14:15:32.543Z","dependency_job_id":null,"html_url":"https://github.com/JimLynchCodes/Request-Promise-Mockery-Example","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/JimLynchCodes%2FRequest-Promise-Mockery-Example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimLynchCodes%2FRequest-Promise-Mockery-Example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimLynchCodes%2FRequest-Promise-Mockery-Example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JimLynchCodes%2FRequest-Promise-Mockery-Example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JimLynchCodes","download_url":"https://codeload.github.com/JimLynchCodes/Request-Promise-Mockery-Example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246176261,"owners_count":20735733,"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-12-09T16:18:30.415Z","updated_at":"2025-03-29T11:25:04.857Z","avatar_url":"https://github.com/JimLynchCodes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Request-Promise-Mockery-Example\n\nSource code for the repl.it project here: https://repl.it/@JimLynch/Request-Promise-Mockery-Example\n\nThis project demonstrates specifically how to test a function that loads the [request-promise](https://github.com/request/request-promise) library by using [mockery](https://github.com/mfncooper/mockery) to have the function under test use a mocked response rather than requiring the library and using the real implementation.\n\nMore generally, it shows how to use mockery to mock objects and functions that are require'd in other files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimlynchcodes%2Frequest-promise-mockery-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimlynchcodes%2Frequest-promise-mockery-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimlynchcodes%2Frequest-promise-mockery-example/lists"}