{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/pulls/comments/168865547","pull_request_review_id":97308083,"id":168865547,"diff_hunk":"@@ -0,0 +1,106 @@\n+const {generateEntity} = require(`../src/generate-data.js`);\n+\n+const TEST_COORDS = {\n+  x: {\n+    min: 150,\n+    max: 500,\n+  },\n+  y: {\n+    min: 300,\n+    max: 900,\n+  }\n+};\n+\n+const TEST_PRICE = {\n+  min: 1000,\n+  max: 1000000\n+};\n+\n+const TEST_ROOM = {\n+  min: 1,\n+  max: 5\n+};\n+\n+const TEST_GUEST = {\n+  min: 0,\n+  max: 100\n+};\n+\n+const TEST_TYPES = [`flat`, `palace`, `house`, `bungalo`];\n+const TEST_CHECKIN_CHECKOUTS = [`12:00`, `13:00`, `14:00`];\n+// const TEST_FEATURES = [`wifi`, `dishwasher`, `parking`, `washer`, `elevator`, `conditioner`];\n+\n+const assert = require(`assert`);\n+\n+describe(`DATA TEST`, () => {\n+  let current = null;\n+\n+  describe(`#author`, () => {\n+    beforeEach(() => {\n+      current = generateEntity().author;\n+    });\n+\n+    it(`avatar is String and contains URL`, () => {\n+      assert.equal(typeof current.avatar === `string` && current.avatar.includes(`http`), true);\n+    });\n+\n+  });\n+\n+  describe(`#offer`, () => {\n+\n+    beforeEach(() => {\n+      current = generateEntity().offer;\n+    });\n+\n+    it(`\n+    ##title is String,\n+    ##address contains {{location.x}} and {{location.y}} mockups,\n+    ##price between 1000 and 1000000\n+    ##type contains some from [\"flat\", \"palace\", \"house\", \"bungalo\"]\n+    ##rooms between 1 and 5\n+    ##guests between 0 and 100\n+    ##checkin contains some from [\"12:00\", \"13:00\", \"14:00\"]\n+    ##checkout contains some from [\"12:00\", \"13:00\", \"14:00\"]\n+    ##features is unique Array from [\"wifi\", \"dishwasher\", \"parking\", \"washer\", \"elevator\", \"conditioner\"]\n+    ##description is empty String\n+    ##photos is an Array`, () => {\n+      assert.equal(typeof current.title === `string`, true);","path":"test/generate-data.test.js","position":67,"original_position":67,"commit_id":"7ecf639d7154e6a7adc871682143c604a60aa76a","original_commit_id":"7ecf639d7154e6a7adc871682143c604a60aa76a","user":{"login":"healqq","id":4745481,"avatar_url":"https://avatars2.githubusercontent.com/u/4745481?v=4","gravatar_id":"","url":"https://api.github.com/users/healqq","html_url":"https://github.com/healqq","followers_url":"https://api.github.com/users/healqq/followers","following_url":"https://api.github.com/users/healqq/following{/other_user}","gists_url":"https://api.github.com/users/healqq/gists{/gist_id}","starred_url":"https://api.github.com/users/healqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/healqq/subscriptions","organizations_url":"https://api.github.com/users/healqq/orgs","repos_url":"https://api.github.com/users/healqq/repos","events_url":"https://api.github.com/users/healqq/events{/privacy}","received_events_url":"https://api.github.com/users/healqq/received_events","type":"User","site_admin":false},"body":"только надо помнить что equal - это нестрогое сравнение","created_at":"2018-02-16T20:43:22Z","updated_at":"2018-02-16T20:44:57Z","html_url":"https://github.com/htmlacademy-nodejs/179111-keksobooking/pull/7#discussion_r168865547","pull_request_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/pulls/7","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/pulls/comments/168865547"},"html":{"href":"https://github.com/htmlacademy-nodejs/179111-keksobooking/pull/7#discussion_r168865547"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/pulls/7"}},"in_reply_to_id":168863643},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/pulls/7","id":168931022,"html_url":"https://github.com/htmlacademy-nodejs/179111-keksobooking/pull/7","diff_url":"https://github.com/htmlacademy-nodejs/179111-keksobooking/pull/7.diff","patch_url":"https://github.com/htmlacademy-nodejs/179111-keksobooking/pull/7.patch","issue_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/issues/7","number":7,"state":"open","locked":false,"title":"Всё из ничего","user":{"login":"bolshovalexandr","id":19558362,"avatar_url":"https://avatars0.githubusercontent.com/u/19558362?v=4","gravatar_id":"","url":"https://api.github.com/users/bolshovalexandr","html_url":"https://github.com/bolshovalexandr","followers_url":"https://api.github.com/users/bolshovalexandr/followers","following_url":"https://api.github.com/users/bolshovalexandr/following{/other_user}","gists_url":"https://api.github.com/users/bolshovalexandr/gists{/gist_id}","starred_url":"https://api.github.com/users/bolshovalexandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolshovalexandr/subscriptions","organizations_url":"https://api.github.com/users/bolshovalexandr/orgs","repos_url":"https://api.github.com/users/bolshovalexandr/repos","events_url":"https://api.github.com/users/bolshovalexandr/events{/privacy}","received_events_url":"https://api.github.com/users/bolshovalexandr/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Всё из ничего](https://up.htmlacademy.ru/nodejs/1/user/179111/tasks/8)","created_at":"2018-02-13T19:11:27Z","updated_at":"2018-02-16T20:44:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6f445a3e59b5d91835fb5b329932727781c21cc","assignee":{"login":"healqq","id":4745481,"avatar_url":"https://avatars2.githubusercontent.com/u/4745481?v=4","gravatar_id":"","url":"https://api.github.com/users/healqq","html_url":"https://github.com/healqq","followers_url":"https://api.github.com/users/healqq/followers","following_url":"https://api.github.com/users/healqq/following{/other_user}","gists_url":"https://api.github.com/users/healqq/gists{/gist_id}","starred_url":"https://api.github.com/users/healqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/healqq/subscriptions","organizations_url":"https://api.github.com/users/healqq/orgs","repos_url":"https://api.github.com/users/healqq/repos","events_url":"https://api.github.com/users/healqq/events{/privacy}","received_events_url":"https://api.github.com/users/healqq/received_events","type":"User","site_admin":false},"assignees":[{"login":"healqq","id":4745481,"avatar_url":"https://avatars2.githubusercontent.com/u/4745481?v=4","gravatar_id":"","url":"https://api.github.com/users/healqq","html_url":"https://github.com/healqq","followers_url":"https://api.github.com/users/healqq/followers","following_url":"https://api.github.com/users/healqq/following{/other_user}","gists_url":"https://api.github.com/users/healqq/gists{/gist_id}","starred_url":"https://api.github.com/users/healqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/healqq/subscriptions","organizations_url":"https://api.github.com/users/healqq/orgs","repos_url":"https://api.github.com/users/healqq/repos","events_url":"https://api.github.com/users/healqq/events{/privacy}","received_events_url":"https://api.github.com/users/healqq/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/pulls/7/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/pulls/7/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/issues/7/comments","statuses_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/statuses/7ecf639d7154e6a7adc871682143c604a60aa76a","head":{"label":"bolshovalexandr:module3-task2","ref":"module3-task2","sha":"7ecf639d7154e6a7adc871682143c604a60aa76a","user":{"login":"bolshovalexandr","id":19558362,"avatar_url":"https://avatars0.githubusercontent.com/u/19558362?v=4","gravatar_id":"","url":"https://api.github.com/users/bolshovalexandr","html_url":"https://github.com/bolshovalexandr","followers_url":"https://api.github.com/users/bolshovalexandr/followers","following_url":"https://api.github.com/users/bolshovalexandr/following{/other_user}","gists_url":"https://api.github.com/users/bolshovalexandr/gists{/gist_id}","starred_url":"https://api.github.com/users/bolshovalexandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolshovalexandr/subscriptions","organizations_url":"https://api.github.com/users/bolshovalexandr/orgs","repos_url":"https://api.github.com/users/bolshovalexandr/repos","events_url":"https://api.github.com/users/bolshovalexandr/events{/privacy}","received_events_url":"https://api.github.com/users/bolshovalexandr/received_events","type":"User","site_admin":false},"repo":{"id":120344947,"name":"179111-nodejs-kb","full_name":"bolshovalexandr/179111-nodejs-kb","owner":{"login":"bolshovalexandr","id":19558362,"avatar_url":"https://avatars0.githubusercontent.com/u/19558362?v=4","gravatar_id":"","url":"https://api.github.com/users/bolshovalexandr","html_url":"https://github.com/bolshovalexandr","followers_url":"https://api.github.com/users/bolshovalexandr/followers","following_url":"https://api.github.com/users/bolshovalexandr/following{/other_user}","gists_url":"https://api.github.com/users/bolshovalexandr/gists{/gist_id}","starred_url":"https://api.github.com/users/bolshovalexandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolshovalexandr/subscriptions","organizations_url":"https://api.github.com/users/bolshovalexandr/orgs","repos_url":"https://api.github.com/users/bolshovalexandr/repos","events_url":"https://api.github.com/users/bolshovalexandr/events{/privacy}","received_events_url":"https://api.github.com/users/bolshovalexandr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bolshovalexandr/179111-nodejs-kb","description":"Александр Большов","fork":true,"url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb","forks_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/forks","keys_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/teams","hooks_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/hooks","issue_events_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/issues/events{/number}","events_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/events","assignees_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/assignees{/user}","branches_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/branches{/branch}","tags_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/tags","blobs_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/git/refs{/sha}","trees_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/statuses/{sha}","languages_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/languages","stargazers_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/stargazers","contributors_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/contributors","subscribers_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/subscribers","subscription_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/subscription","commits_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/commits{/sha}","git_commits_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/git/commits{/sha}","comments_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/comments{/number}","issue_comment_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/issues/comments{/number}","contents_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/contents/{+path}","compare_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/merges","archive_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/downloads","issues_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/issues{/number}","pulls_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/pulls{/number}","milestones_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/milestones{/number}","notifications_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/labels{/name}","releases_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/releases{/id}","deployments_url":"https://api.github.com/repos/bolshovalexandr/179111-nodejs-kb/deployments","created_at":"2018-02-05T18:33:38Z","updated_at":"2018-02-09T06:46:25Z","pushed_at":"2018-02-16T19:42:14Z","git_url":"git://github.com/bolshovalexandr/179111-nodejs-kb.git","ssh_url":"git@github.com:bolshovalexandr/179111-nodejs-kb.git","clone_url":"https://github.com/bolshovalexandr/179111-nodejs-kb.git","svn_url":"https://github.com/bolshovalexandr/179111-nodejs-kb","homepage":null,"size":31,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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-nodejs:master","ref":"master","sha":"fbbbc5004a3ac5d3dd75c88fa7633f41a276d551","user":{"login":"htmlacademy-nodejs","id":23528374,"avatar_url":"https://avatars0.githubusercontent.com/u/23528374?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-nodejs","html_url":"https://github.com/htmlacademy-nodejs","followers_url":"https://api.github.com/users/htmlacademy-nodejs/followers","following_url":"https://api.github.com/users/htmlacademy-nodejs/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-nodejs/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-nodejs/orgs","repos_url":"https://api.github.com/users/htmlacademy-nodejs/repos","events_url":"https://api.github.com/users/htmlacademy-nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-nodejs/received_events","type":"Organization","site_admin":false},"repo":{"id":120344904,"name":"179111-keksobooking","full_name":"htmlacademy-nodejs/179111-keksobooking","owner":{"login":"htmlacademy-nodejs","id":23528374,"avatar_url":"https://avatars0.githubusercontent.com/u/23528374?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-nodejs","html_url":"https://github.com/htmlacademy-nodejs","followers_url":"https://api.github.com/users/htmlacademy-nodejs/followers","following_url":"https://api.github.com/users/htmlacademy-nodejs/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-nodejs/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-nodejs/orgs","repos_url":"https://api.github.com/users/htmlacademy-nodejs/repos","events_url":"https://api.github.com/users/htmlacademy-nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-nodejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-nodejs/179111-keksobooking","description":"Александр Большов","fork":false,"url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/deployments","created_at":"2018-02-05T18:33:18Z","updated_at":"2018-02-08T11:08:34Z","pushed_at":"2018-02-16T19:42:15Z","git_url":"git://github.com/htmlacademy-nodejs/179111-keksobooking.git","ssh_url":"git@github.com:htmlacademy-nodejs/179111-keksobooking.git","clone_url":"https://github.com/htmlacademy-nodejs/179111-keksobooking.git","svn_url":"https://github.com/htmlacademy-nodejs/179111-keksobooking","homepage":"https://github.com/bolshovalexandr/179111-keksobooking","size":19,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"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-nodejs/179111-keksobooking/pulls/7"},"html":{"href":"https://github.com/htmlacademy-nodejs/179111-keksobooking/pull/7"},"issue":{"href":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/issues/7"},"comments":{"href":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-nodejs/179111-keksobooking/statuses/7ecf639d7154e6a7adc871682143c604a60aa76a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"healqq"}}