{"action":"created","comment":{"url":"https://api.github.com/repos/gemini-testing/console-notifier/pulls/comments/89092884","pull_request_review_id":9641775,"id":89092884,"diff_hunk":"@@ -0,0 +1,83 @@\n+'use strict';\n+\n+const proxyquire = require('proxyquire');\n+const init = require('../utils').init;\n+\n+const Events = {\n+    ERROR: 'fooBarErr',\n+    TEST_FAIL: 'fooBarTestFail',\n+    SUITE_FAIL: 'fooBarSuiteFail',\n+    RUNNER_END: 'fooBarRunnerEnd'\n+};\n+\n+describe('plugin/hermione', () => {\n+    const sandbox = sinon.sandbox.create();\n+\n+    const initHermione = () => init(Events);\n+\n+    let plugin;\n+    let notifier;\n+\n+    beforeEach(() => {\n+        notifier = sandbox.stub();\n+\n+        plugin = proxyquire('../../hermione', {\n+            './lib/notify': notifier\n+        });\n+    });\n+\n+    afterEach(() => sandbox.restore());\n+\n+    it('should notify on \"RUNNER_END\"', () => {\n+        const hermione = initHermione();\n+\n+        plugin(hermione, {});\n+\n+        hermione.emit(Events.RUNNER_END);\n+\n+        assert.calledOnce(notifier);\n+    });\n+\n+    it('should notify passed logs', () => {\n+        const hermione = initHermione();\n+\n+        plugin(hermione, {logs: 'some-logs'});\n+\n+        hermione.emit(Events.RUNNER_END);\n+\n+        assert.calledWith(notifier, 'some-logs');\n+    });\n+\n+    it('should consider hermione to be failed if \"ERROR\" event was emitted', () => {","path":"test/plugin/hermione.js","position":51,"original_position":51,"commit_id":"725a6f80325d22a93411198638e1607616dde774","original_commit_id":"725a6f80325d22a93411198638e1607616dde774","user":{"login":"tormozz48","id":996162,"avatar_url":"https://avatars.githubusercontent.com/u/996162?v=3","gravatar_id":"","url":"https://api.github.com/users/tormozz48","html_url":"https://github.com/tormozz48","followers_url":"https://api.github.com/users/tormozz48/followers","following_url":"https://api.github.com/users/tormozz48/following{/other_user}","gists_url":"https://api.github.com/users/tormozz48/gists{/gist_id}","starred_url":"https://api.github.com/users/tormozz48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tormozz48/subscriptions","organizations_url":"https://api.github.com/users/tormozz48/orgs","repos_url":"https://api.github.com/users/tormozz48/repos","events_url":"https://api.github.com/users/tormozz48/events{/privacy}","received_events_url":"https://api.github.com/users/tormozz48/received_events","type":"User","site_admin":false},"body":"Может еще что-то общее можно вынести в область видимости describe-а","created_at":"2016-11-22T11:16:38Z","updated_at":"2016-11-22T11:19:48Z","html_url":"https://github.com/gemini-testing/console-notifier/pull/1#discussion_r89092884","pull_request_url":"https://api.github.com/repos/gemini-testing/console-notifier/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/gemini-testing/console-notifier/pulls/comments/89092884"},"html":{"href":"https://github.com/gemini-testing/console-notifier/pull/1#discussion_r89092884"},"pull_request":{"href":"https://api.github.com/repos/gemini-testing/console-notifier/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/gemini-testing/console-notifier/pulls/1","id":94653447,"html_url":"https://github.com/gemini-testing/console-notifier/pull/1","diff_url":"https://github.com/gemini-testing/console-notifier/pull/1.diff","patch_url":"https://github.com/gemini-testing/console-notifier/pull/1.patch","issue_url":"https://api.github.com/repos/gemini-testing/console-notifier/issues/1","number":1,"state":"open","locked":false,"title":"Implement plugin for 'gemini' and 'hermione'","user":{"login":"eGavr","id":6376693,"avatar_url":"https://avatars.githubusercontent.com/u/6376693?v=3","gravatar_id":"","url":"https://api.github.com/users/eGavr","html_url":"https://github.com/eGavr","followers_url":"https://api.github.com/users/eGavr/followers","following_url":"https://api.github.com/users/eGavr/following{/other_user}","gists_url":"https://api.github.com/users/eGavr/gists{/gist_id}","starred_url":"https://api.github.com/users/eGavr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eGavr/subscriptions","organizations_url":"https://api.github.com/users/eGavr/orgs","repos_url":"https://api.github.com/users/eGavr/repos","events_url":"https://api.github.com/users/eGavr/events{/privacy}","received_events_url":"https://api.github.com/users/eGavr/received_events","type":"User","site_admin":false},"body":"cc @sipayRT @tormozz48 ","created_at":"2016-11-21T16:51:56Z","updated_at":"2016-11-22T11:19:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c8849d5309a54c05d79384d971c58f1e8ae99c4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gemini-testing/console-notifier/pulls/1/commits","review_comments_url":"https://api.github.com/repos/gemini-testing/console-notifier/pulls/1/comments","review_comment_url":"https://api.github.com/repos/gemini-testing/console-notifier/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gemini-testing/console-notifier/issues/1/comments","statuses_url":"https://api.github.com/repos/gemini-testing/console-notifier/statuses/725a6f80325d22a93411198638e1607616dde774","head":{"label":"gemini-testing:init","ref":"init","sha":"725a6f80325d22a93411198638e1607616dde774","user":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"repo":{"id":74366828,"name":"console-notifier","full_name":"gemini-testing/console-notifier","owner":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gemini-testing/console-notifier","description":"Plugin for gemini and hermione to log some information to a console after tests finished","fork":false,"url":"https://api.github.com/repos/gemini-testing/console-notifier","forks_url":"https://api.github.com/repos/gemini-testing/console-notifier/forks","keys_url":"https://api.github.com/repos/gemini-testing/console-notifier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gemini-testing/console-notifier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gemini-testing/console-notifier/teams","hooks_url":"https://api.github.com/repos/gemini-testing/console-notifier/hooks","issue_events_url":"https://api.github.com/repos/gemini-testing/console-notifier/issues/events{/number}","events_url":"https://api.github.com/repos/gemini-testing/console-notifier/events","assignees_url":"https://api.github.com/repos/gemini-testing/console-notifier/assignees{/user}","branches_url":"https://api.github.com/repos/gemini-testing/console-notifier/branches{/branch}","tags_url":"https://api.github.com/repos/gemini-testing/console-notifier/tags","blobs_url":"https://api.github.com/repos/gemini-testing/console-notifier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gemini-testing/console-notifier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gemini-testing/console-notifier/git/refs{/sha}","trees_url":"https://api.github.com/repos/gemini-testing/console-notifier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gemini-testing/console-notifier/statuses/{sha}","languages_url":"https://api.github.com/repos/gemini-testing/console-notifier/languages","stargazers_url":"https://api.github.com/repos/gemini-testing/console-notifier/stargazers","contributors_url":"https://api.github.com/repos/gemini-testing/console-notifier/contributors","subscribers_url":"https://api.github.com/repos/gemini-testing/console-notifier/subscribers","subscription_url":"https://api.github.com/repos/gemini-testing/console-notifier/subscription","commits_url":"https://api.github.com/repos/gemini-testing/console-notifier/commits{/sha}","git_commits_url":"https://api.github.com/repos/gemini-testing/console-notifier/git/commits{/sha}","comments_url":"https://api.github.com/repos/gemini-testing/console-notifier/comments{/number}","issue_comment_url":"https://api.github.com/repos/gemini-testing/console-notifier/issues/comments{/number}","contents_url":"https://api.github.com/repos/gemini-testing/console-notifier/contents/{+path}","compare_url":"https://api.github.com/repos/gemini-testing/console-notifier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gemini-testing/console-notifier/merges","archive_url":"https://api.github.com/repos/gemini-testing/console-notifier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gemini-testing/console-notifier/downloads","issues_url":"https://api.github.com/repos/gemini-testing/console-notifier/issues{/number}","pulls_url":"https://api.github.com/repos/gemini-testing/console-notifier/pulls{/number}","milestones_url":"https://api.github.com/repos/gemini-testing/console-notifier/milestones{/number}","notifications_url":"https://api.github.com/repos/gemini-testing/console-notifier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gemini-testing/console-notifier/labels{/name}","releases_url":"https://api.github.com/repos/gemini-testing/console-notifier/releases{/id}","deployments_url":"https://api.github.com/repos/gemini-testing/console-notifier/deployments","created_at":"2016-11-21T13:34:56Z","updated_at":"2016-11-22T10:26:25Z","pushed_at":"2016-11-22T10:26:57Z","git_url":"git://github.com/gemini-testing/console-notifier.git","ssh_url":"git@github.com:gemini-testing/console-notifier.git","clone_url":"https://github.com/gemini-testing/console-notifier.git","svn_url":"https://github.com/gemini-testing/console-notifier","homepage":"","size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"gemini-testing:master","ref":"master","sha":"c7be47f37fd243f10f0132b0e671e2651cb23aa6","user":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"repo":{"id":74366828,"name":"console-notifier","full_name":"gemini-testing/console-notifier","owner":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gemini-testing/console-notifier","description":"Plugin for gemini and hermione to log some information to a console after tests finished","fork":false,"url":"https://api.github.com/repos/gemini-testing/console-notifier","forks_url":"https://api.github.com/repos/gemini-testing/console-notifier/forks","keys_url":"https://api.github.com/repos/gemini-testing/console-notifier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gemini-testing/console-notifier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gemini-testing/console-notifier/teams","hooks_url":"https://api.github.com/repos/gemini-testing/console-notifier/hooks","issue_events_url":"https://api.github.com/repos/gemini-testing/console-notifier/issues/events{/number}","events_url":"https://api.github.com/repos/gemini-testing/console-notifier/events","assignees_url":"https://api.github.com/repos/gemini-testing/console-notifier/assignees{/user}","branches_url":"https://api.github.com/repos/gemini-testing/console-notifier/branches{/branch}","tags_url":"https://api.github.com/repos/gemini-testing/console-notifier/tags","blobs_url":"https://api.github.com/repos/gemini-testing/console-notifier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gemini-testing/console-notifier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gemini-testing/console-notifier/git/refs{/sha}","trees_url":"https://api.github.com/repos/gemini-testing/console-notifier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gemini-testing/console-notifier/statuses/{sha}","languages_url":"https://api.github.com/repos/gemini-testing/console-notifier/languages","stargazers_url":"https://api.github.com/repos/gemini-testing/console-notifier/stargazers","contributors_url":"https://api.github.com/repos/gemini-testing/console-notifier/contributors","subscribers_url":"https://api.github.com/repos/gemini-testing/console-notifier/subscribers","subscription_url":"https://api.github.com/repos/gemini-testing/console-notifier/subscription","commits_url":"https://api.github.com/repos/gemini-testing/console-notifier/commits{/sha}","git_commits_url":"https://api.github.com/repos/gemini-testing/console-notifier/git/commits{/sha}","comments_url":"https://api.github.com/repos/gemini-testing/console-notifier/comments{/number}","issue_comment_url":"https://api.github.com/repos/gemini-testing/console-notifier/issues/comments{/number}","contents_url":"https://api.github.com/repos/gemini-testing/console-notifier/contents/{+path}","compare_url":"https://api.github.com/repos/gemini-testing/console-notifier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gemini-testing/console-notifier/merges","archive_url":"https://api.github.com/repos/gemini-testing/console-notifier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gemini-testing/console-notifier/downloads","issues_url":"https://api.github.com/repos/gemini-testing/console-notifier/issues{/number}","pulls_url":"https://api.github.com/repos/gemini-testing/console-notifier/pulls{/number}","milestones_url":"https://api.github.com/repos/gemini-testing/console-notifier/milestones{/number}","notifications_url":"https://api.github.com/repos/gemini-testing/console-notifier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gemini-testing/console-notifier/labels{/name}","releases_url":"https://api.github.com/repos/gemini-testing/console-notifier/releases{/id}","deployments_url":"https://api.github.com/repos/gemini-testing/console-notifier/deployments","created_at":"2016-11-21T13:34:56Z","updated_at":"2016-11-22T10:26:25Z","pushed_at":"2016-11-22T10:26:57Z","git_url":"git://github.com/gemini-testing/console-notifier.git","ssh_url":"git@github.com:gemini-testing/console-notifier.git","clone_url":"https://github.com/gemini-testing/console-notifier.git","svn_url":"https://github.com/gemini-testing/console-notifier","homepage":"","size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gemini-testing/console-notifier/pulls/1"},"html":{"href":"https://github.com/gemini-testing/console-notifier/pull/1"},"issue":{"href":"https://api.github.com/repos/gemini-testing/console-notifier/issues/1"},"comments":{"href":"https://api.github.com/repos/gemini-testing/console-notifier/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/gemini-testing/console-notifier/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/gemini-testing/console-notifier/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gemini-testing/console-notifier/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/gemini-testing/console-notifier/statuses/725a6f80325d22a93411198638e1607616dde774"}}}}
{"actor":{"display_login":"tormozz48"}}