{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/pulls/comments/180561136","pull_request_review_id":111001801,"id":180561136,"diff_hunk":"@@ -0,0 +1,13 @@\n+import {assert} from 'chai';\n+import returnResult from './returnResult';\n+\n+describe(`Array`, () => {\n+  describe(`#indexOf()`, () => {\n+    it(`должен вернуть корректный результат игры`, () => {\n+      assert.deepEqual(returnResult([4, 5, 8, 10, 11], {score: 11, notes: 2, time: 10000}), `Вы заняли 2 место из 6 игроков. Это лучше, чем у 66% игроков`);","path":"js/modules/returnResult.test.js","position":7,"original_position":7,"commit_id":"1d4928e671c70bea9a5b942456d782fa1c6ad0d9","original_commit_id":"1d4928e671c70bea9a5b942456d782fa1c6ad0d9","user":{"login":"yandzee","id":5919088,"avatar_url":"https://avatars3.githubusercontent.com/u/5919088?v=4","gravatar_id":"","url":"https://api.github.com/users/yandzee","html_url":"https://github.com/yandzee","followers_url":"https://api.github.com/users/yandzee/followers","following_url":"https://api.github.com/users/yandzee/following{/other_user}","gists_url":"https://api.github.com/users/yandzee/gists{/gist_id}","starred_url":"https://api.github.com/users/yandzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandzee/subscriptions","organizations_url":"https://api.github.com/users/yandzee/orgs","repos_url":"https://api.github.com/users/yandzee/repos","events_url":"https://api.github.com/users/yandzee/events{/privacy}","received_events_url":"https://api.github.com/users/yandzee/received_events","type":"User","site_admin":false},"body":"Херово в тестах делать так: ты тестируешь результат работы функции, а не представление для пользователя (строку). Ты в любой момент можешь захотеть текст поменять - и что ты будешь делать? Обходить все тесты и править ее там?\r\n\r\nВозвращай объект с двумя полями: с кодом и со строкой для юзера. Проверяй в тестах код.","created_at":"2018-04-10T20:42:41Z","updated_at":"2018-04-10T20:44:40Z","html_url":"https://github.com/htmlacademy-ecmascript/129211-guess-melody/pull/6#discussion_r180561136","pull_request_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/pulls/6","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/pulls/comments/180561136"},"html":{"href":"https://github.com/htmlacademy-ecmascript/129211-guess-melody/pull/6#discussion_r180561136"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/pulls/6","id":180436772,"html_url":"https://github.com/htmlacademy-ecmascript/129211-guess-melody/pull/6","diff_url":"https://github.com/htmlacademy-ecmascript/129211-guess-melody/pull/6.diff","patch_url":"https://github.com/htmlacademy-ecmascript/129211-guess-melody/pull/6.patch","issue_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/issues/6","number":6,"state":"open","locked":false,"title":"Начнём с конца","user":{"login":"callisto1337","id":15786296,"avatar_url":"https://avatars2.githubusercontent.com/u/15786296?v=4","gravatar_id":"","url":"https://api.github.com/users/callisto1337","html_url":"https://github.com/callisto1337","followers_url":"https://api.github.com/users/callisto1337/followers","following_url":"https://api.github.com/users/callisto1337/following{/other_user}","gists_url":"https://api.github.com/users/callisto1337/gists{/gist_id}","starred_url":"https://api.github.com/users/callisto1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callisto1337/subscriptions","organizations_url":"https://api.github.com/users/callisto1337/orgs","repos_url":"https://api.github.com/users/callisto1337/repos","events_url":"https://api.github.com/users/callisto1337/events{/privacy}","received_events_url":"https://api.github.com/users/callisto1337/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Начнём с конца](https://up.htmlacademy.ru/ecmascript/4/user/129211/tasks/6)","created_at":"2018-04-09T21:48:01Z","updated_at":"2018-04-10T20:44:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e102d3053d09d786c4c19aa2b186ec12f1ae2b89","assignee":{"login":"yandzee","id":5919088,"avatar_url":"https://avatars3.githubusercontent.com/u/5919088?v=4","gravatar_id":"","url":"https://api.github.com/users/yandzee","html_url":"https://github.com/yandzee","followers_url":"https://api.github.com/users/yandzee/followers","following_url":"https://api.github.com/users/yandzee/following{/other_user}","gists_url":"https://api.github.com/users/yandzee/gists{/gist_id}","starred_url":"https://api.github.com/users/yandzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandzee/subscriptions","organizations_url":"https://api.github.com/users/yandzee/orgs","repos_url":"https://api.github.com/users/yandzee/repos","events_url":"https://api.github.com/users/yandzee/events{/privacy}","received_events_url":"https://api.github.com/users/yandzee/received_events","type":"User","site_admin":false},"assignees":[{"login":"yandzee","id":5919088,"avatar_url":"https://avatars3.githubusercontent.com/u/5919088?v=4","gravatar_id":"","url":"https://api.github.com/users/yandzee","html_url":"https://github.com/yandzee","followers_url":"https://api.github.com/users/yandzee/followers","following_url":"https://api.github.com/users/yandzee/following{/other_user}","gists_url":"https://api.github.com/users/yandzee/gists{/gist_id}","starred_url":"https://api.github.com/users/yandzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandzee/subscriptions","organizations_url":"https://api.github.com/users/yandzee/orgs","repos_url":"https://api.github.com/users/yandzee/repos","events_url":"https://api.github.com/users/yandzee/events{/privacy}","received_events_url":"https://api.github.com/users/yandzee/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/pulls/6/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/pulls/6/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/issues/6/comments","statuses_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/statuses/1d4928e671c70bea9a5b942456d782fa1c6ad0d9","head":{"label":"callisto1337:module3-task2","ref":"module3-task2","sha":"1d4928e671c70bea9a5b942456d782fa1c6ad0d9","user":{"login":"callisto1337","id":15786296,"avatar_url":"https://avatars2.githubusercontent.com/u/15786296?v=4","gravatar_id":"","url":"https://api.github.com/users/callisto1337","html_url":"https://github.com/callisto1337","followers_url":"https://api.github.com/users/callisto1337/followers","following_url":"https://api.github.com/users/callisto1337/following{/other_user}","gists_url":"https://api.github.com/users/callisto1337/gists{/gist_id}","starred_url":"https://api.github.com/users/callisto1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callisto1337/subscriptions","organizations_url":"https://api.github.com/users/callisto1337/orgs","repos_url":"https://api.github.com/users/callisto1337/repos","events_url":"https://api.github.com/users/callisto1337/events{/privacy}","received_events_url":"https://api.github.com/users/callisto1337/received_events","type":"User","site_admin":false},"repo":{"id":126875936,"name":"129211-guess-melody","full_name":"callisto1337/129211-guess-melody","owner":{"login":"callisto1337","id":15786296,"avatar_url":"https://avatars2.githubusercontent.com/u/15786296?v=4","gravatar_id":"","url":"https://api.github.com/users/callisto1337","html_url":"https://github.com/callisto1337","followers_url":"https://api.github.com/users/callisto1337/followers","following_url":"https://api.github.com/users/callisto1337/following{/other_user}","gists_url":"https://api.github.com/users/callisto1337/gists{/gist_id}","starred_url":"https://api.github.com/users/callisto1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callisto1337/subscriptions","organizations_url":"https://api.github.com/users/callisto1337/orgs","repos_url":"https://api.github.com/users/callisto1337/repos","events_url":"https://api.github.com/users/callisto1337/events{/privacy}","received_events_url":"https://api.github.com/users/callisto1337/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/callisto1337/129211-guess-melody","description":"Михаил Ламоткин","fork":true,"url":"https://api.github.com/repos/callisto1337/129211-guess-melody","forks_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/forks","keys_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/keys{/key_id}","collaborators_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/teams","hooks_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/hooks","issue_events_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/issues/events{/number}","events_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/events","assignees_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/assignees{/user}","branches_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/branches{/branch}","tags_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/tags","blobs_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/git/refs{/sha}","trees_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/git/trees{/sha}","statuses_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/statuses/{sha}","languages_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/languages","stargazers_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/stargazers","contributors_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/contributors","subscribers_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/subscribers","subscription_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/subscription","commits_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/commits{/sha}","git_commits_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/git/commits{/sha}","comments_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/comments{/number}","issue_comment_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/issues/comments{/number}","contents_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/contents/{+path}","compare_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/compare/{base}...{head}","merges_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/merges","archive_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/downloads","issues_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/issues{/number}","pulls_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/pulls{/number}","milestones_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/milestones{/number}","notifications_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/labels{/name}","releases_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/releases{/id}","deployments_url":"https://api.github.com/repos/callisto1337/129211-guess-melody/deployments","created_at":"2018-03-26T18:57:29Z","updated_at":"2018-03-26T18:57:31Z","pushed_at":"2018-04-09T21:46:24Z","git_url":"git://github.com/callisto1337/129211-guess-melody.git","ssh_url":"git@github.com:callisto1337/129211-guess-melody.git","clone_url":"https://github.com/callisto1337/129211-guess-melody.git","svn_url":"https://github.com/callisto1337/129211-guess-melody","homepage":null,"size":377,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-ecmascript:master","ref":"master","sha":"bfad4ad7555449fa45804062c48ede312cc9f08c","user":{"login":"htmlacademy-ecmascript","id":22890904,"avatar_url":"https://avatars2.githubusercontent.com/u/22890904?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-ecmascript","html_url":"https://github.com/htmlacademy-ecmascript","followers_url":"https://api.github.com/users/htmlacademy-ecmascript/followers","following_url":"https://api.github.com/users/htmlacademy-ecmascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-ecmascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-ecmascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-ecmascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-ecmascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-ecmascript/repos","events_url":"https://api.github.com/users/htmlacademy-ecmascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-ecmascript/received_events","type":"Organization","site_admin":false},"repo":{"id":126875834,"name":"129211-guess-melody","full_name":"htmlacademy-ecmascript/129211-guess-melody","owner":{"login":"htmlacademy-ecmascript","id":22890904,"avatar_url":"https://avatars2.githubusercontent.com/u/22890904?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-ecmascript","html_url":"https://github.com/htmlacademy-ecmascript","followers_url":"https://api.github.com/users/htmlacademy-ecmascript/followers","following_url":"https://api.github.com/users/htmlacademy-ecmascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-ecmascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-ecmascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-ecmascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-ecmascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-ecmascript/repos","events_url":"https://api.github.com/users/htmlacademy-ecmascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-ecmascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-ecmascript/129211-guess-melody","description":"Михаил Ламоткин","fork":false,"url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody","forks_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/forks","keys_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/teams","hooks_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/events","assignees_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/tags","blobs_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/subscription","commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/merges","archive_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/downloads","issues_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/deployments","created_at":"2018-03-26T18:56:44Z","updated_at":"2018-04-03T20:05:15Z","pushed_at":"2018-04-09T21:48:02Z","git_url":"git://github.com/htmlacademy-ecmascript/129211-guess-melody.git","ssh_url":"git@github.com:htmlacademy-ecmascript/129211-guess-melody.git","clone_url":"https://github.com/htmlacademy-ecmascript/129211-guess-melody.git","svn_url":"https://github.com/htmlacademy-ecmascript/129211-guess-melody","homepage":"https://github.com/callisto1337/129211-guess-melody","size":396,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/pulls/6"},"html":{"href":"https://github.com/htmlacademy-ecmascript/129211-guess-melody/pull/6"},"issue":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/issues/6"},"comments":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/129211-guess-melody/statuses/1d4928e671c70bea9a5b942456d782fa1c6ad0d9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"yandzee"}}