{"action":"created","comment":{"url":"https://api.github.com/repos/u2i/confy/pulls/comments/72762501","id":72762501,"diff_hunk":"@@ -0,0 +1,66 @@\n+import React from 'react';\n+import { mount, shallow } from 'enzyme';\n+import Event from '../../app/components/calendar/event/Event';\n+import chai from 'chai';\n+import jsdom from 'mocha-jsdom';\n+import { _ } from 'lodash';\n+\n+const expect = chai.expect;\n+\n+describe('<Event />', () => {\n+  const eventSummary = 'Sample Event';\n+  const creator = { email: 'creator@example.com', self: true };\n+  const sampleRoom = {\n+    id: 8,\n+    capacity: 10,\n+    title: 'Narnia One',\n+    color: '#dffabd',\n+    email: 'email@resource.calendar.google.com'\n+  };\n+  const sampleEvent = {\n+    attendees: [{ response_status: 'needsAction', self: true }],\n+    creator: creator,\n+    end: { date_time: '2016-07-25T02:30:00.000+02:00' },\n+    id: '7utc9k4fds8kf2734q72dsoq8c',\n+    start: { date_time: '2016-07-25T00:30:00.000+02:00' },\n+    conference_room: sampleRoom,\n+    start_timestamp: 1469397600,\n+    end_timestamp: 1469406600,\n+    summary: eventSummary\n+  };\n+  const containerHeight = 30;\n+  const unitEventLengthInSeconds = 30 * 60;\n+  const timeFormat = 'HH:mm';\n+\n+  jsdom();\n+\n+  it('renders correctly', () => {\n+    const wrapper = shallow(\n+      <Event\n+      event={sampleEvent}\n+      containerHeight={containerHeight}\n+      unitEventLengthInSeconds={unitEventLengthInSeconds}\n+      timeFormat={timeFormat} />\n+    );\n+    expect(wrapper.find('div')).to.have.length(5);\n+    expect(wrapper.find('.event').props().style.height).to.eq(150);\n+    expect(wrapper.find('.event-time').text()).to.include('00:30');\n+    expect(wrapper.find('.event-name').text()).to.include(eventSummary);\n+    expect(wrapper.find('.event-user').text()).to.include(creator.email);\n+    expect(wrapper.find('.event-location').text()).to.include(sampleRoom.title);\n+  });\n+\n+  it('renders correctly with other length', () => {\n+    let eventClone = _.cloneDeep(sampleEvent);\n+    eventClone.end_timestamp += 60 * 60; // 1 hour\n+    eventClone.end.date_time = '2016-07-25T03:30:00.000+02:00';","path":"client/test/event/EventTest.jsx","position":56,"original_position":56,"commit_id":"a715e6563b3360934569cceea02f67ac198ef70a","original_commit_id":"e4036e5ec2dfeadf86908bdcb99c6ae9ff17593c","user":{"login":"mhib","id":3617925,"avatar_url":"https://avatars.githubusercontent.com/u/3617925?v=3","gravatar_id":"","url":"https://api.github.com/users/mhib","html_url":"https://github.com/mhib","followers_url":"https://api.github.com/users/mhib/followers","following_url":"https://api.github.com/users/mhib/following{/other_user}","gists_url":"https://api.github.com/users/mhib/gists{/gist_id}","starred_url":"https://api.github.com/users/mhib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhib/subscriptions","organizations_url":"https://api.github.com/users/mhib/orgs","repos_url":"https://api.github.com/users/mhib/repos","events_url":"https://api.github.com/users/mhib/events{/privacy}","received_events_url":"https://api.github.com/users/mhib/received_events","type":"User","site_admin":false},"body":"It is not. I just thought that if timestamp changed the date_time should be updated as well.","created_at":"2016-07-29T09:08:51Z","updated_at":"2016-07-29T09:08:51Z","html_url":"https://github.com/u2i/confy/pull/61#discussion_r72762501","pull_request_url":"https://api.github.com/repos/u2i/confy/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/u2i/confy/pulls/comments/72762501"},"html":{"href":"https://github.com/u2i/confy/pull/61#discussion_r72762501"},"pull_request":{"href":"https://api.github.com/repos/u2i/confy/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/u2i/confy/pulls/61","id":79321997,"html_url":"https://github.com/u2i/confy/pull/61","diff_url":"https://github.com/u2i/confy/pull/61.diff","patch_url":"https://github.com/u2i/confy/pull/61.patch","issue_url":"https://api.github.com/repos/u2i/confy/issues/61","number":61,"state":"open","locked":false,"title":"Event component test","user":{"login":"mhib","id":3617925,"avatar_url":"https://avatars.githubusercontent.com/u/3617925?v=3","gravatar_id":"","url":"https://api.github.com/users/mhib","html_url":"https://github.com/mhib","followers_url":"https://api.github.com/users/mhib/followers","following_url":"https://api.github.com/users/mhib/following{/other_user}","gists_url":"https://api.github.com/users/mhib/gists{/gist_id}","starred_url":"https://api.github.com/users/mhib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhib/subscriptions","organizations_url":"https://api.github.com/users/mhib/orgs","repos_url":"https://api.github.com/users/mhib/repos","events_url":"https://api.github.com/users/mhib/events{/privacy}","received_events_url":"https://api.github.com/users/mhib/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-29T08:11:19Z","updated_at":"2016-07-29T09:08:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"905c40bcd2c6f37514bb4706078a671bdb745ec2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/u2i/confy/pulls/61/commits","review_comments_url":"https://api.github.com/repos/u2i/confy/pulls/61/comments","review_comment_url":"https://api.github.com/repos/u2i/confy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/u2i/confy/issues/61/comments","statuses_url":"https://api.github.com/repos/u2i/confy/statuses/a715e6563b3360934569cceea02f67ac198ef70a","head":{"label":"u2i:event-component-test","ref":"event-component-test","sha":"a715e6563b3360934569cceea02f67ac198ef70a","user":{"login":"u2i","id":856377,"avatar_url":"https://avatars.githubusercontent.com/u/856377?v=3","gravatar_id":"","url":"https://api.github.com/users/u2i","html_url":"https://github.com/u2i","followers_url":"https://api.github.com/users/u2i/followers","following_url":"https://api.github.com/users/u2i/following{/other_user}","gists_url":"https://api.github.com/users/u2i/gists{/gist_id}","starred_url":"https://api.github.com/users/u2i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u2i/subscriptions","organizations_url":"https://api.github.com/users/u2i/orgs","repos_url":"https://api.github.com/users/u2i/repos","events_url":"https://api.github.com/users/u2i/events{/privacy}","received_events_url":"https://api.github.com/users/u2i/received_events","type":"Organization","site_admin":false},"repo":{"id":62560182,"name":"confy","full_name":"u2i/confy","owner":{"login":"u2i","id":856377,"avatar_url":"https://avatars.githubusercontent.com/u/856377?v=3","gravatar_id":"","url":"https://api.github.com/users/u2i","html_url":"https://github.com/u2i","followers_url":"https://api.github.com/users/u2i/followers","following_url":"https://api.github.com/users/u2i/following{/other_user}","gists_url":"https://api.github.com/users/u2i/gists{/gist_id}","starred_url":"https://api.github.com/users/u2i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u2i/subscriptions","organizations_url":"https://api.github.com/users/u2i/orgs","repos_url":"https://api.github.com/users/u2i/repos","events_url":"https://api.github.com/users/u2i/events{/privacy}","received_events_url":"https://api.github.com/users/u2i/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/u2i/confy","description":null,"fork":false,"url":"https://api.github.com/repos/u2i/confy","forks_url":"https://api.github.com/repos/u2i/confy/forks","keys_url":"https://api.github.com/repos/u2i/confy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/u2i/confy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/u2i/confy/teams","hooks_url":"https://api.github.com/repos/u2i/confy/hooks","issue_events_url":"https://api.github.com/repos/u2i/confy/issues/events{/number}","events_url":"https://api.github.com/repos/u2i/confy/events","assignees_url":"https://api.github.com/repos/u2i/confy/assignees{/user}","branches_url":"https://api.github.com/repos/u2i/confy/branches{/branch}","tags_url":"https://api.github.com/repos/u2i/confy/tags","blobs_url":"https://api.github.com/repos/u2i/confy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/u2i/confy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/u2i/confy/git/refs{/sha}","trees_url":"https://api.github.com/repos/u2i/confy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/u2i/confy/statuses/{sha}","languages_url":"https://api.github.com/repos/u2i/confy/languages","stargazers_url":"https://api.github.com/repos/u2i/confy/stargazers","contributors_url":"https://api.github.com/repos/u2i/confy/contributors","subscribers_url":"https://api.github.com/repos/u2i/confy/subscribers","subscription_url":"https://api.github.com/repos/u2i/confy/subscription","commits_url":"https://api.github.com/repos/u2i/confy/commits{/sha}","git_commits_url":"https://api.github.com/repos/u2i/confy/git/commits{/sha}","comments_url":"https://api.github.com/repos/u2i/confy/comments{/number}","issue_comment_url":"https://api.github.com/repos/u2i/confy/issues/comments{/number}","contents_url":"https://api.github.com/repos/u2i/confy/contents/{+path}","compare_url":"https://api.github.com/repos/u2i/confy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/u2i/confy/merges","archive_url":"https://api.github.com/repos/u2i/confy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/u2i/confy/downloads","issues_url":"https://api.github.com/repos/u2i/confy/issues{/number}","pulls_url":"https://api.github.com/repos/u2i/confy/pulls{/number}","milestones_url":"https://api.github.com/repos/u2i/confy/milestones{/number}","notifications_url":"https://api.github.com/repos/u2i/confy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/u2i/confy/labels{/name}","releases_url":"https://api.github.com/repos/u2i/confy/releases{/id}","deployments_url":"https://api.github.com/repos/u2i/confy/deployments","created_at":"2016-07-04T12:23:19Z","updated_at":"2016-07-04T13:24:19Z","pushed_at":"2016-07-29T09:06:52Z","git_url":"git://github.com/u2i/confy.git","ssh_url":"git@github.com:u2i/confy.git","clone_url":"https://github.com/u2i/confy.git","svn_url":"https://github.com/u2i/confy","homepage":null,"size":422,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"base":{"label":"u2i:develop","ref":"develop","sha":"27485e0e0921d0aa0d8164b4277a9c9d39dee678","user":{"login":"u2i","id":856377,"avatar_url":"https://avatars.githubusercontent.com/u/856377?v=3","gravatar_id":"","url":"https://api.github.com/users/u2i","html_url":"https://github.com/u2i","followers_url":"https://api.github.com/users/u2i/followers","following_url":"https://api.github.com/users/u2i/following{/other_user}","gists_url":"https://api.github.com/users/u2i/gists{/gist_id}","starred_url":"https://api.github.com/users/u2i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u2i/subscriptions","organizations_url":"https://api.github.com/users/u2i/orgs","repos_url":"https://api.github.com/users/u2i/repos","events_url":"https://api.github.com/users/u2i/events{/privacy}","received_events_url":"https://api.github.com/users/u2i/received_events","type":"Organization","site_admin":false},"repo":{"id":62560182,"name":"confy","full_name":"u2i/confy","owner":{"login":"u2i","id":856377,"avatar_url":"https://avatars.githubusercontent.com/u/856377?v=3","gravatar_id":"","url":"https://api.github.com/users/u2i","html_url":"https://github.com/u2i","followers_url":"https://api.github.com/users/u2i/followers","following_url":"https://api.github.com/users/u2i/following{/other_user}","gists_url":"https://api.github.com/users/u2i/gists{/gist_id}","starred_url":"https://api.github.com/users/u2i/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u2i/subscriptions","organizations_url":"https://api.github.com/users/u2i/orgs","repos_url":"https://api.github.com/users/u2i/repos","events_url":"https://api.github.com/users/u2i/events{/privacy}","received_events_url":"https://api.github.com/users/u2i/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/u2i/confy","description":null,"fork":false,"url":"https://api.github.com/repos/u2i/confy","forks_url":"https://api.github.com/repos/u2i/confy/forks","keys_url":"https://api.github.com/repos/u2i/confy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/u2i/confy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/u2i/confy/teams","hooks_url":"https://api.github.com/repos/u2i/confy/hooks","issue_events_url":"https://api.github.com/repos/u2i/confy/issues/events{/number}","events_url":"https://api.github.com/repos/u2i/confy/events","assignees_url":"https://api.github.com/repos/u2i/confy/assignees{/user}","branches_url":"https://api.github.com/repos/u2i/confy/branches{/branch}","tags_url":"https://api.github.com/repos/u2i/confy/tags","blobs_url":"https://api.github.com/repos/u2i/confy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/u2i/confy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/u2i/confy/git/refs{/sha}","trees_url":"https://api.github.com/repos/u2i/confy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/u2i/confy/statuses/{sha}","languages_url":"https://api.github.com/repos/u2i/confy/languages","stargazers_url":"https://api.github.com/repos/u2i/confy/stargazers","contributors_url":"https://api.github.com/repos/u2i/confy/contributors","subscribers_url":"https://api.github.com/repos/u2i/confy/subscribers","subscription_url":"https://api.github.com/repos/u2i/confy/subscription","commits_url":"https://api.github.com/repos/u2i/confy/commits{/sha}","git_commits_url":"https://api.github.com/repos/u2i/confy/git/commits{/sha}","comments_url":"https://api.github.com/repos/u2i/confy/comments{/number}","issue_comment_url":"https://api.github.com/repos/u2i/confy/issues/comments{/number}","contents_url":"https://api.github.com/repos/u2i/confy/contents/{+path}","compare_url":"https://api.github.com/repos/u2i/confy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/u2i/confy/merges","archive_url":"https://api.github.com/repos/u2i/confy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/u2i/confy/downloads","issues_url":"https://api.github.com/repos/u2i/confy/issues{/number}","pulls_url":"https://api.github.com/repos/u2i/confy/pulls{/number}","milestones_url":"https://api.github.com/repos/u2i/confy/milestones{/number}","notifications_url":"https://api.github.com/repos/u2i/confy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/u2i/confy/labels{/name}","releases_url":"https://api.github.com/repos/u2i/confy/releases{/id}","deployments_url":"https://api.github.com/repos/u2i/confy/deployments","created_at":"2016-07-04T12:23:19Z","updated_at":"2016-07-04T13:24:19Z","pushed_at":"2016-07-29T09:06:52Z","git_url":"git://github.com/u2i/confy.git","ssh_url":"git@github.com:u2i/confy.git","clone_url":"https://github.com/u2i/confy.git","svn_url":"https://github.com/u2i/confy","homepage":null,"size":422,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/u2i/confy/pulls/61"},"html":{"href":"https://github.com/u2i/confy/pull/61"},"issue":{"href":"https://api.github.com/repos/u2i/confy/issues/61"},"comments":{"href":"https://api.github.com/repos/u2i/confy/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/u2i/confy/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/u2i/confy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/u2i/confy/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/u2i/confy/statuses/a715e6563b3360934569cceea02f67ac198ef70a"}}}}
{"actor":{"display_login":"mhib"}}