{"id":18696475,"url":"https://github.com/hermanya/mock-hubot","last_synced_at":"2025-11-08T15:30:30.277Z","repository":{"id":25458206,"uuid":"28888470","full_name":"Hermanya/mock-hubot","owner":"Hermanya","description":"Hubot mock library made dead simple","archived":false,"fork":false,"pushed_at":"2018-01-27T16:17:22.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T03:42:12.297Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","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/Hermanya.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":"2015-01-06T23:24:16.000Z","updated_at":"2016-03-28T17:19:56.000Z","dependencies_parsed_at":"2022-08-23T07:30:24.969Z","dependency_job_id":null,"html_url":"https://github.com/Hermanya/mock-hubot","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fmock-hubot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fmock-hubot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fmock-hubot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fmock-hubot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hermanya","download_url":"https://codeload.github.com/Hermanya/mock-hubot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239558930,"owners_count":19658929,"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-07T11:19:10.807Z","updated_at":"2025-11-08T15:30:30.228Z","avatar_url":"https://github.com/Hermanya.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mock-hubot\n==========\nThis is a simple wrapper library around [hubot-mock-adapter](https://github.com/blalor/hubot-mock-adapter).\n\n###How to use\n`$ npm install --save-dev mock-hubot`\n\n [Assume we were to test this script.](test/hello-script.coffee)\n\n```\nhumock = require 'mock-hubot'\nhelloScript = require './hello-script.coffee'\n{expect} = require 'chai'\n\ndescribe 'test', -\u003e\n\n    beforeEach (done) -\u003e\n      humock.start -\u003e\n        humock.learn helloScript\n        done()\n\n    afterEach (done) -\u003e\n      humock.shutdown -\u003e done()\n\n    it 'provides callback-based way of testing', (done) -\u003e\n      humock.test 'hello', (envelope, strings) -\u003e\n        expect(strings[0]).match /hello back/\n        done()\n\n    it 'provides promise-based way of testing', (done) -\u003e\n      humock.test('hello').then (response) -\u003e\n        expect(response.toString()).match /hello back/\n        done()\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Fmock-hubot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhermanya%2Fmock-hubot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Fmock-hubot/lists"}