{"action":"created","comment":{"url":"https://api.github.com/repos/CKPI/Survey/pulls/comments/158251045","pull_request_review_id":85030152,"id":158251045,"diff_hunk":"@@ -0,0 +1,129 @@\n+'use strict';\n+\n+const fs = require('fs');\n+const convert = require('../lib/CSVConverter.js');\n+\n+const resSingle = {\n+  name: {\n+    first: 'Іванов',\n+    last: 'Іван',\n+    middle: 'Іванович'\n+  },\n+  born: new Date(1 / 1 / 1990),\n+  ipn: 2221112211,\n+  passport: {\n+    type: '1',\n+    series: 'СС',\n+    created: new Date(1 / 1 / 2000),\n+    department: 'Київським МВ УМВС'\n+  },\n+  studentCard: {\n+    id: '101',\n+    series: 'КВ',\n+    number: 642222444,\n+    created: new Date(9 / 1 / 2009),\n+    eol: new Date(6 / 30 / 2013)\n+  },\n+  faculty: 'Факультет інформатики та обчислювальної техніки',\n+  course: 1,\n+  group: 'ІТ-71'\n+};\n+\n+const resMultiple = [ {\n+  name: {\n+    first: 'Іванов',\n+    last: 'Іван',\n+    middle: 'Іванович'\n+  },\n+  born: new Date(1 / 1 / 1990),\n+  ipn: 2221112211,\n+  passport: {\n+    type: '1',\n+    series: 'СС',\n+    created: new Date(1 / 1 / 2000),\n+    department: 'Київським МВ УМВС'\n+  },\n+  studentCard: {\n+    id: '101',\n+    series: 'КВ',\n+    number: 642222444,\n+    created: new Date(9 / 1 / 2009),\n+    eol: new Date(6 / 30 / 2013)","path":"tests/CSVConvert.js","position":25,"original_position":51,"commit_id":"42dc64e422a263154fd8c48559811ccd6c04e2ef","original_commit_id":"42dc64e422a263154fd8c48559811ccd6c04e2ef","user":{"login":"nechaido","id":17278974,"avatar_url":"https://avatars2.githubusercontent.com/u/17278974?v=4","gravatar_id":"","url":"https://api.github.com/users/nechaido","html_url":"https://github.com/nechaido","followers_url":"https://api.github.com/users/nechaido/followers","following_url":"https://api.github.com/users/nechaido/following{/other_user}","gists_url":"https://api.github.com/users/nechaido/gists{/gist_id}","starred_url":"https://api.github.com/users/nechaido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nechaido/subscriptions","organizations_url":"https://api.github.com/users/nechaido/orgs","repos_url":"https://api.github.com/users/nechaido/repos","events_url":"https://api.github.com/users/nechaido/events{/privacy}","received_events_url":"https://api.github.com/users/nechaido/received_events","type":"User","site_admin":false},"body":"Ditto.","created_at":"2017-12-21T11:07:00Z","updated_at":"2017-12-21T11:07:53Z","html_url":"https://github.com/CKPI/Survey/pull/7#discussion_r158251045","pull_request_url":"https://api.github.com/repos/CKPI/Survey/pulls/7","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/CKPI/Survey/pulls/comments/158251045"},"html":{"href":"https://github.com/CKPI/Survey/pull/7#discussion_r158251045"},"pull_request":{"href":"https://api.github.com/repos/CKPI/Survey/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/CKPI/Survey/pulls/7","id":159256589,"html_url":"https://github.com/CKPI/Survey/pull/7","diff_url":"https://github.com/CKPI/Survey/pull/7.diff","patch_url":"https://github.com/CKPI/Survey/pull/7.patch","issue_url":"https://api.github.com/repos/CKPI/Survey/issues/7","number":7,"state":"open","locked":false,"title":"Add CSVConverter and test for it","user":{"login":"SemenchenkoVitaliy","id":17744818,"avatar_url":"https://avatars0.githubusercontent.com/u/17744818?v=4","gravatar_id":"","url":"https://api.github.com/users/SemenchenkoVitaliy","html_url":"https://github.com/SemenchenkoVitaliy","followers_url":"https://api.github.com/users/SemenchenkoVitaliy/followers","following_url":"https://api.github.com/users/SemenchenkoVitaliy/following{/other_user}","gists_url":"https://api.github.com/users/SemenchenkoVitaliy/gists{/gist_id}","starred_url":"https://api.github.com/users/SemenchenkoVitaliy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SemenchenkoVitaliy/subscriptions","organizations_url":"https://api.github.com/users/SemenchenkoVitaliy/orgs","repos_url":"https://api.github.com/users/SemenchenkoVitaliy/repos","events_url":"https://api.github.com/users/SemenchenkoVitaliy/events{/privacy}","received_events_url":"https://api.github.com/users/SemenchenkoVitaliy/received_events","type":"User","site_admin":false},"body":"Please, let me know if there should be reverse converter and give an example of how tests should be written","created_at":"2017-12-19T19:51:59Z","updated_at":"2017-12-21T11:07:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64669d811c464bf6392b33de4df1dceade30a24b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/CKPI/Survey/pulls/7/commits","review_comments_url":"https://api.github.com/repos/CKPI/Survey/pulls/7/comments","review_comment_url":"https://api.github.com/repos/CKPI/Survey/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CKPI/Survey/issues/7/comments","statuses_url":"https://api.github.com/repos/CKPI/Survey/statuses/42dc64e422a263154fd8c48559811ccd6c04e2ef","head":{"label":"SemenchenkoVitaliy:master","ref":"master","sha":"42dc64e422a263154fd8c48559811ccd6c04e2ef","user":{"login":"SemenchenkoVitaliy","id":17744818,"avatar_url":"https://avatars0.githubusercontent.com/u/17744818?v=4","gravatar_id":"","url":"https://api.github.com/users/SemenchenkoVitaliy","html_url":"https://github.com/SemenchenkoVitaliy","followers_url":"https://api.github.com/users/SemenchenkoVitaliy/followers","following_url":"https://api.github.com/users/SemenchenkoVitaliy/following{/other_user}","gists_url":"https://api.github.com/users/SemenchenkoVitaliy/gists{/gist_id}","starred_url":"https://api.github.com/users/SemenchenkoVitaliy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SemenchenkoVitaliy/subscriptions","organizations_url":"https://api.github.com/users/SemenchenkoVitaliy/orgs","repos_url":"https://api.github.com/users/SemenchenkoVitaliy/repos","events_url":"https://api.github.com/users/SemenchenkoVitaliy/events{/privacy}","received_events_url":"https://api.github.com/users/SemenchenkoVitaliy/received_events","type":"User","site_admin":false},"repo":{"id":114771091,"name":"Survey","full_name":"SemenchenkoVitaliy/Survey","owner":{"login":"SemenchenkoVitaliy","id":17744818,"avatar_url":"https://avatars0.githubusercontent.com/u/17744818?v=4","gravatar_id":"","url":"https://api.github.com/users/SemenchenkoVitaliy","html_url":"https://github.com/SemenchenkoVitaliy","followers_url":"https://api.github.com/users/SemenchenkoVitaliy/followers","following_url":"https://api.github.com/users/SemenchenkoVitaliy/following{/other_user}","gists_url":"https://api.github.com/users/SemenchenkoVitaliy/gists{/gist_id}","starred_url":"https://api.github.com/users/SemenchenkoVitaliy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SemenchenkoVitaliy/subscriptions","organizations_url":"https://api.github.com/users/SemenchenkoVitaliy/orgs","repos_url":"https://api.github.com/users/SemenchenkoVitaliy/repos","events_url":"https://api.github.com/users/SemenchenkoVitaliy/events{/privacy}","received_events_url":"https://api.github.com/users/SemenchenkoVitaliy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SemenchenkoVitaliy/Survey","description":"KPI Survey Server","fork":true,"url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey","forks_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/forks","keys_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/teams","hooks_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/hooks","issue_events_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/issues/events{/number}","events_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/events","assignees_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/assignees{/user}","branches_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/branches{/branch}","tags_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/tags","blobs_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/git/refs{/sha}","trees_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/statuses/{sha}","languages_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/languages","stargazers_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/stargazers","contributors_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/contributors","subscribers_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/subscribers","subscription_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/subscription","commits_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/commits{/sha}","git_commits_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/git/commits{/sha}","comments_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/comments{/number}","issue_comment_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/issues/comments{/number}","contents_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/contents/{+path}","compare_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/merges","archive_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/downloads","issues_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/issues{/number}","pulls_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/pulls{/number}","milestones_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/milestones{/number}","notifications_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/labels{/name}","releases_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/releases{/id}","deployments_url":"https://api.github.com/repos/SemenchenkoVitaliy/Survey/deployments","created_at":"2017-12-19T13:55:07Z","updated_at":"2017-12-19T14:51:47Z","pushed_at":"2017-12-21T08:22:41Z","git_url":"git://github.com/SemenchenkoVitaliy/Survey.git","ssh_url":"git@github.com:SemenchenkoVitaliy/Survey.git","clone_url":"https://github.com/SemenchenkoVitaliy/Survey.git","svn_url":"https://github.com/SemenchenkoVitaliy/Survey","homepage":null,"size":6,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"CKPI:master","ref":"master","sha":"42c7cae0a239f42e83dce646ee807b64ed310960","user":{"login":"CKPI","id":17773054,"avatar_url":"https://avatars0.githubusercontent.com/u/17773054?v=4","gravatar_id":"","url":"https://api.github.com/users/CKPI","html_url":"https://github.com/CKPI","followers_url":"https://api.github.com/users/CKPI/followers","following_url":"https://api.github.com/users/CKPI/following{/other_user}","gists_url":"https://api.github.com/users/CKPI/gists{/gist_id}","starred_url":"https://api.github.com/users/CKPI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CKPI/subscriptions","organizations_url":"https://api.github.com/users/CKPI/orgs","repos_url":"https://api.github.com/users/CKPI/repos","events_url":"https://api.github.com/users/CKPI/events{/privacy}","received_events_url":"https://api.github.com/users/CKPI/received_events","type":"Organization","site_admin":false},"repo":{"id":114564877,"name":"Survey","full_name":"CKPI/Survey","owner":{"login":"CKPI","id":17773054,"avatar_url":"https://avatars0.githubusercontent.com/u/17773054?v=4","gravatar_id":"","url":"https://api.github.com/users/CKPI","html_url":"https://github.com/CKPI","followers_url":"https://api.github.com/users/CKPI/followers","following_url":"https://api.github.com/users/CKPI/following{/other_user}","gists_url":"https://api.github.com/users/CKPI/gists{/gist_id}","starred_url":"https://api.github.com/users/CKPI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CKPI/subscriptions","organizations_url":"https://api.github.com/users/CKPI/orgs","repos_url":"https://api.github.com/users/CKPI/repos","events_url":"https://api.github.com/users/CKPI/events{/privacy}","received_events_url":"https://api.github.com/users/CKPI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CKPI/Survey","description":"KPI Survey Server","fork":false,"url":"https://api.github.com/repos/CKPI/Survey","forks_url":"https://api.github.com/repos/CKPI/Survey/forks","keys_url":"https://api.github.com/repos/CKPI/Survey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CKPI/Survey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CKPI/Survey/teams","hooks_url":"https://api.github.com/repos/CKPI/Survey/hooks","issue_events_url":"https://api.github.com/repos/CKPI/Survey/issues/events{/number}","events_url":"https://api.github.com/repos/CKPI/Survey/events","assignees_url":"https://api.github.com/repos/CKPI/Survey/assignees{/user}","branches_url":"https://api.github.com/repos/CKPI/Survey/branches{/branch}","tags_url":"https://api.github.com/repos/CKPI/Survey/tags","blobs_url":"https://api.github.com/repos/CKPI/Survey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CKPI/Survey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CKPI/Survey/git/refs{/sha}","trees_url":"https://api.github.com/repos/CKPI/Survey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CKPI/Survey/statuses/{sha}","languages_url":"https://api.github.com/repos/CKPI/Survey/languages","stargazers_url":"https://api.github.com/repos/CKPI/Survey/stargazers","contributors_url":"https://api.github.com/repos/CKPI/Survey/contributors","subscribers_url":"https://api.github.com/repos/CKPI/Survey/subscribers","subscription_url":"https://api.github.com/repos/CKPI/Survey/subscription","commits_url":"https://api.github.com/repos/CKPI/Survey/commits{/sha}","git_commits_url":"https://api.github.com/repos/CKPI/Survey/git/commits{/sha}","comments_url":"https://api.github.com/repos/CKPI/Survey/comments{/number}","issue_comment_url":"https://api.github.com/repos/CKPI/Survey/issues/comments{/number}","contents_url":"https://api.github.com/repos/CKPI/Survey/contents/{+path}","compare_url":"https://api.github.com/repos/CKPI/Survey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CKPI/Survey/merges","archive_url":"https://api.github.com/repos/CKPI/Survey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CKPI/Survey/downloads","issues_url":"https://api.github.com/repos/CKPI/Survey/issues{/number}","pulls_url":"https://api.github.com/repos/CKPI/Survey/pulls{/number}","milestones_url":"https://api.github.com/repos/CKPI/Survey/milestones{/number}","notifications_url":"https://api.github.com/repos/CKPI/Survey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CKPI/Survey/labels{/name}","releases_url":"https://api.github.com/repos/CKPI/Survey/releases{/id}","deployments_url":"https://api.github.com/repos/CKPI/Survey/deployments","created_at":"2017-12-17T20:04:25Z","updated_at":"2017-12-19T08:54:07Z","pushed_at":"2017-12-21T08:22:43Z","git_url":"git://github.com/CKPI/Survey.git","ssh_url":"git@github.com:CKPI/Survey.git","clone_url":"https://github.com/CKPI/Survey.git","svn_url":"https://github.com/CKPI/Survey","homepage":null,"size":186,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":1,"open_issues":8,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CKPI/Survey/pulls/7"},"html":{"href":"https://github.com/CKPI/Survey/pull/7"},"issue":{"href":"https://api.github.com/repos/CKPI/Survey/issues/7"},"comments":{"href":"https://api.github.com/repos/CKPI/Survey/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/CKPI/Survey/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/CKPI/Survey/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CKPI/Survey/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/CKPI/Survey/statuses/42dc64e422a263154fd8c48559811ccd6c04e2ef"}},"author_association":"NONE"}}
{"actor":{"display_login":"nechaido"}}