{"action":"created","comment":{"url":"https://api.github.com/repos/clio/lib-themisui/pulls/comments/54286433","id":54286433,"diff_hunk":"@@ -0,0 +1,26 @@\n+moment = require \"moment\"\n+\n+describe 'ThemisComponents: Directive: thDatePicker', ->\n+  element = scope = validTemplate = null\n+  todayDate = moment()\n+  noDate = ''\n+  defaultDateFormat = 'YYYY-MM-DD'\n+\n+  setupDatePicker = (date, dateFormat = '') ->\n+    scopeAdditions = {date: date, dateFormat: dateFormat}\n+    validTemplate = \"\"\"\n+      <th-date-picker ng-model=\"date\" date-format=\"{{dateFormat}}\"></th-date-picker>\n+    \"\"\"\n+    {element} = compileDirective validTemplate, scopeAdditions\n+\n+  it \"creates a date out of a test date with a default format #{defaultDateFormat}\", ->\n+    setupDatePicker(todayDate)\n+    expect(element.find(\"input.th-input\").val()).toBe todayDate.format(defaultDateFormat)\n+\n+  # test the 3 valid date formats\n+  dateFormat = ['YYYY-MM-DD', 'MM/DD/YYYY', 'DD/MM/YYYY']\n+  \n+  dateFormat.forEach (format) ->","path":"themis_components/thDatePicker/thDatePicker.directive.spec.coffee","position":23,"original_position":23,"commit_id":"ec32e151555280d82dcb9211a4d23373bceb4805","original_commit_id":"ec32e151555280d82dcb9211a4d23373bceb4805","user":{"login":"JefCurtis","id":3892972,"avatar_url":"https://avatars.githubusercontent.com/u/3892972?v=3","gravatar_id":"","url":"https://api.github.com/users/JefCurtis","html_url":"https://github.com/JefCurtis","followers_url":"https://api.github.com/users/JefCurtis/followers","following_url":"https://api.github.com/users/JefCurtis/following{/other_user}","gists_url":"https://api.github.com/users/JefCurtis/gists{/gist_id}","starred_url":"https://api.github.com/users/JefCurtis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JefCurtis/subscriptions","organizations_url":"https://api.github.com/users/JefCurtis/orgs","repos_url":"https://api.github.com/users/JefCurtis/repos","events_url":"https://api.github.com/users/JefCurtis/events{/privacy}","received_events_url":"https://api.github.com/users/JefCurtis/received_events","type":"User","site_admin":false},"body":":+1: for drying up these tests. ","created_at":"2016-02-26T19:03:50Z","updated_at":"2016-02-26T19:03:50Z","html_url":"https://github.com/clio/lib-themisui/pull/88#discussion_r54286433","pull_request_url":"https://api.github.com/repos/clio/lib-themisui/pulls/88","_links":{"self":{"href":"https://api.github.com/repos/clio/lib-themisui/pulls/comments/54286433"},"html":{"href":"https://github.com/clio/lib-themisui/pull/88#discussion_r54286433"},"pull_request":{"href":"https://api.github.com/repos/clio/lib-themisui/pulls/88"}}},"pull_request":{"url":"https://api.github.com/repos/clio/lib-themisui/pulls/88","id":57576199,"html_url":"https://github.com/clio/lib-themisui/pull/88","diff_url":"https://github.com/clio/lib-themisui/pull/88.diff","patch_url":"https://github.com/clio/lib-themisui/pull/88.patch","issue_url":"https://api.github.com/repos/clio/lib-themisui/issues/88","number":88,"state":"open","locked":false,"title":"clio-23421-thDatePicker","user":{"login":"JeffMarvin","id":6612596,"avatar_url":"https://avatars.githubusercontent.com/u/6612596?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffMarvin","html_url":"https://github.com/JeffMarvin","followers_url":"https://api.github.com/users/JeffMarvin/followers","following_url":"https://api.github.com/users/JeffMarvin/following{/other_user}","gists_url":"https://api.github.com/users/JeffMarvin/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffMarvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffMarvin/subscriptions","organizations_url":"https://api.github.com/users/JeffMarvin/orgs","repos_url":"https://api.github.com/users/JeffMarvin/repos","events_url":"https://api.github.com/users/JeffMarvin/events{/privacy}","received_events_url":"https://api.github.com/users/JeffMarvin/received_events","type":"User","site_admin":false},"body":"First writeup for usage, looking for feedback.","created_at":"2016-01-28T22:24:36Z","updated_at":"2016-02-26T19:03:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61aad742be97e1ac99acee196bce7e2782fa9ee9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/clio/lib-themisui/pulls/88/commits","review_comments_url":"https://api.github.com/repos/clio/lib-themisui/pulls/88/comments","review_comment_url":"https://api.github.com/repos/clio/lib-themisui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clio/lib-themisui/issues/88/comments","statuses_url":"https://api.github.com/repos/clio/lib-themisui/statuses/ec32e151555280d82dcb9211a4d23373bceb4805","head":{"label":"JeffMarvin:clio-23421-thDatePicker","ref":"clio-23421-thDatePicker","sha":"ec32e151555280d82dcb9211a4d23373bceb4805","user":{"login":"JeffMarvin","id":6612596,"avatar_url":"https://avatars.githubusercontent.com/u/6612596?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffMarvin","html_url":"https://github.com/JeffMarvin","followers_url":"https://api.github.com/users/JeffMarvin/followers","following_url":"https://api.github.com/users/JeffMarvin/following{/other_user}","gists_url":"https://api.github.com/users/JeffMarvin/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffMarvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffMarvin/subscriptions","organizations_url":"https://api.github.com/users/JeffMarvin/orgs","repos_url":"https://api.github.com/users/JeffMarvin/repos","events_url":"https://api.github.com/users/JeffMarvin/events{/privacy}","received_events_url":"https://api.github.com/users/JeffMarvin/received_events","type":"User","site_admin":false},"repo":{"id":46990496,"name":"lib-themisui","full_name":"JeffMarvin/lib-themisui","owner":{"login":"JeffMarvin","id":6612596,"avatar_url":"https://avatars.githubusercontent.com/u/6612596?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffMarvin","html_url":"https://github.com/JeffMarvin","followers_url":"https://api.github.com/users/JeffMarvin/followers","following_url":"https://api.github.com/users/JeffMarvin/following{/other_user}","gists_url":"https://api.github.com/users/JeffMarvin/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffMarvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffMarvin/subscriptions","organizations_url":"https://api.github.com/users/JeffMarvin/orgs","repos_url":"https://api.github.com/users/JeffMarvin/repos","events_url":"https://api.github.com/users/JeffMarvin/events{/privacy}","received_events_url":"https://api.github.com/users/JeffMarvin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JeffMarvin/lib-themisui","description":"","fork":true,"url":"https://api.github.com/repos/JeffMarvin/lib-themisui","forks_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/forks","keys_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/teams","hooks_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/hooks","issue_events_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/issues/events{/number}","events_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/events","assignees_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/assignees{/user}","branches_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/branches{/branch}","tags_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/tags","blobs_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/git/refs{/sha}","trees_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/statuses/{sha}","languages_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/languages","stargazers_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/stargazers","contributors_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/contributors","subscribers_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/subscribers","subscription_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/subscription","commits_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/commits{/sha}","git_commits_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/git/commits{/sha}","comments_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/comments{/number}","issue_comment_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/issues/comments{/number}","contents_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/contents/{+path}","compare_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/merges","archive_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/downloads","issues_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/issues{/number}","pulls_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/pulls{/number}","milestones_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/milestones{/number}","notifications_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/labels{/name}","releases_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/releases{/id}","deployments_url":"https://api.github.com/repos/JeffMarvin/lib-themisui/deployments","created_at":"2015-11-27T16:46:35Z","updated_at":"2016-01-26T16:26:53Z","pushed_at":"2016-02-25T18:04:45Z","git_url":"git://github.com/JeffMarvin/lib-themisui.git","ssh_url":"git@github.com:JeffMarvin/lib-themisui.git","clone_url":"https://github.com/JeffMarvin/lib-themisui.git","svn_url":"https://github.com/JeffMarvin/lib-themisui","homepage":null,"size":998,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"clio:master","ref":"master","sha":"4b02990e0793ad50527f4e1b2461ab3c505e8e33","user":{"login":"clio","id":30769,"avatar_url":"https://avatars.githubusercontent.com/u/30769?v=3","gravatar_id":"","url":"https://api.github.com/users/clio","html_url":"https://github.com/clio","followers_url":"https://api.github.com/users/clio/followers","following_url":"https://api.github.com/users/clio/following{/other_user}","gists_url":"https://api.github.com/users/clio/gists{/gist_id}","starred_url":"https://api.github.com/users/clio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clio/subscriptions","organizations_url":"https://api.github.com/users/clio/orgs","repos_url":"https://api.github.com/users/clio/repos","events_url":"https://api.github.com/users/clio/events{/privacy}","received_events_url":"https://api.github.com/users/clio/received_events","type":"Organization","site_admin":false},"repo":{"id":32031641,"name":"lib-themisui","full_name":"clio/lib-themisui","owner":{"login":"clio","id":30769,"avatar_url":"https://avatars.githubusercontent.com/u/30769?v=3","gravatar_id":"","url":"https://api.github.com/users/clio","html_url":"https://github.com/clio","followers_url":"https://api.github.com/users/clio/followers","following_url":"https://api.github.com/users/clio/following{/other_user}","gists_url":"https://api.github.com/users/clio/gists{/gist_id}","starred_url":"https://api.github.com/users/clio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clio/subscriptions","organizations_url":"https://api.github.com/users/clio/orgs","repos_url":"https://api.github.com/users/clio/repos","events_url":"https://api.github.com/users/clio/events{/privacy}","received_events_url":"https://api.github.com/users/clio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clio/lib-themisui","description":"","fork":false,"url":"https://api.github.com/repos/clio/lib-themisui","forks_url":"https://api.github.com/repos/clio/lib-themisui/forks","keys_url":"https://api.github.com/repos/clio/lib-themisui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clio/lib-themisui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clio/lib-themisui/teams","hooks_url":"https://api.github.com/repos/clio/lib-themisui/hooks","issue_events_url":"https://api.github.com/repos/clio/lib-themisui/issues/events{/number}","events_url":"https://api.github.com/repos/clio/lib-themisui/events","assignees_url":"https://api.github.com/repos/clio/lib-themisui/assignees{/user}","branches_url":"https://api.github.com/repos/clio/lib-themisui/branches{/branch}","tags_url":"https://api.github.com/repos/clio/lib-themisui/tags","blobs_url":"https://api.github.com/repos/clio/lib-themisui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clio/lib-themisui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clio/lib-themisui/git/refs{/sha}","trees_url":"https://api.github.com/repos/clio/lib-themisui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clio/lib-themisui/statuses/{sha}","languages_url":"https://api.github.com/repos/clio/lib-themisui/languages","stargazers_url":"https://api.github.com/repos/clio/lib-themisui/stargazers","contributors_url":"https://api.github.com/repos/clio/lib-themisui/contributors","subscribers_url":"https://api.github.com/repos/clio/lib-themisui/subscribers","subscription_url":"https://api.github.com/repos/clio/lib-themisui/subscription","commits_url":"https://api.github.com/repos/clio/lib-themisui/commits{/sha}","git_commits_url":"https://api.github.com/repos/clio/lib-themisui/git/commits{/sha}","comments_url":"https://api.github.com/repos/clio/lib-themisui/comments{/number}","issue_comment_url":"https://api.github.com/repos/clio/lib-themisui/issues/comments{/number}","contents_url":"https://api.github.com/repos/clio/lib-themisui/contents/{+path}","compare_url":"https://api.github.com/repos/clio/lib-themisui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clio/lib-themisui/merges","archive_url":"https://api.github.com/repos/clio/lib-themisui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clio/lib-themisui/downloads","issues_url":"https://api.github.com/repos/clio/lib-themisui/issues{/number}","pulls_url":"https://api.github.com/repos/clio/lib-themisui/pulls{/number}","milestones_url":"https://api.github.com/repos/clio/lib-themisui/milestones{/number}","notifications_url":"https://api.github.com/repos/clio/lib-themisui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clio/lib-themisui/labels{/name}","releases_url":"https://api.github.com/repos/clio/lib-themisui/releases{/id}","deployments_url":"https://api.github.com/repos/clio/lib-themisui/deployments","created_at":"2015-03-11T17:32:40Z","updated_at":"2016-02-23T06:07:35Z","pushed_at":"2016-02-25T19:00:06Z","git_url":"git://github.com/clio/lib-themisui.git","ssh_url":"git@github.com:clio/lib-themisui.git","clone_url":"https://github.com/clio/lib-themisui.git","svn_url":"https://github.com/clio/lib-themisui","homepage":null,"size":1109,"stargazers_count":2,"watchers_count":2,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":5,"forks":8,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clio/lib-themisui/pulls/88"},"html":{"href":"https://github.com/clio/lib-themisui/pull/88"},"issue":{"href":"https://api.github.com/repos/clio/lib-themisui/issues/88"},"comments":{"href":"https://api.github.com/repos/clio/lib-themisui/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/clio/lib-themisui/pulls/88/comments"},"review_comment":{"href":"https://api.github.com/repos/clio/lib-themisui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clio/lib-themisui/pulls/88/commits"},"statuses":{"href":"https://api.github.com/repos/clio/lib-themisui/statuses/ec32e151555280d82dcb9211a4d23373bceb4805"}}}}