{"action":"created","comment":{"url":"https://api.github.com/repos/behance/BeFF/pulls/comments/55876675","id":55876675,"diff_hunk":"@@ -0,0 +1,87 @@\n+define([\n+  'jquery',\n+  'Component',\n+  'util/cookie'\n+], function($, Component, cookie) {\n+  'use strict';\n+\n+  /**\n+   * Ensures there are no cookies to interfere with tests\n+   */\n+  var CookieHelper = Component.extend({\n+    init: function() {\n+      this._resetCookies();\n+    },\n+\n+    destroy: function() {\n+      this._resetCookies();\n+      this._super();\n+    },\n+\n+    _resetCookies: function() {\n+      var cookies = document.cookie.split(';');\n+\n+      cookies.forEach(function(cookie) {\n+        cookie = $.trim(cookie);\n+\n+        var parts = cookie.split('='),\n+            key = parts[0];\n+\n+        document.cookie = key + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT';\n+      });\n+    }\n+  });\n+\n+  describe('util/cookie', function() {\n+    var helper;\n+\n+    beforeEach(function() {\n+      helper = CookieHelper.init();\n+    });\n+\n+    afterEach(function() {\n+      helper.destroy();\n+    });\n+\n+    it('sets the value', function() {\n+      var value = 'mine=1';\n+      expect(document.cookie).not.toContain(value);\n+      cookie.set('mine', 1);\n+      expect(document.cookie).toContain(value);\n+    });\n+\n+    it('gets the value', function() {","path":"test/specs/util/cookie.js","position":53,"original_position":53,"commit_id":"b73692fed8cd1b545bcd698c7a40a248885cc1cf","original_commit_id":"b73692fed8cd1b545bcd698c7a40a248885cc1cf","user":{"login":"mikesherov","id":364532,"avatar_url":"https://avatars.githubusercontent.com/u/364532?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesherov","html_url":"https://github.com/mikesherov","followers_url":"https://api.github.com/users/mikesherov/followers","following_url":"https://api.github.com/users/mikesherov/following{/other_user}","gists_url":"https://api.github.com/users/mikesherov/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesherov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesherov/subscriptions","organizations_url":"https://api.github.com/users/mikesherov/orgs","repos_url":"https://api.github.com/users/mikesherov/repos","events_url":"https://api.github.com/users/mikesherov/events{/privacy}","received_events_url":"https://api.github.com/users/mikesherov/received_events","type":"User","site_admin":false},"body":"looks like a dupe test,","created_at":"2016-03-11T19:31:40Z","updated_at":"2016-03-11T19:31:40Z","html_url":"https://github.com/behance/BeFF/pull/130#discussion_r55876675","pull_request_url":"https://api.github.com/repos/behance/BeFF/pulls/130","_links":{"self":{"href":"https://api.github.com/repos/behance/BeFF/pulls/comments/55876675"},"html":{"href":"https://github.com/behance/BeFF/pull/130#discussion_r55876675"},"pull_request":{"href":"https://api.github.com/repos/behance/BeFF/pulls/130"}}},"pull_request":{"url":"https://api.github.com/repos/behance/BeFF/pulls/130","id":62310943,"html_url":"https://github.com/behance/BeFF/pull/130","diff_url":"https://github.com/behance/BeFF/pull/130.diff","patch_url":"https://github.com/behance/BeFF/pull/130.patch","issue_url":"https://api.github.com/repos/behance/BeFF/issues/130","number":130,"state":"open","locked":false,"title":"Add shared cookie utility","user":{"login":"kaicataldo","id":7041728,"avatar_url":"https://avatars.githubusercontent.com/u/7041728?v=3","gravatar_id":"","url":"https://api.github.com/users/kaicataldo","html_url":"https://github.com/kaicataldo","followers_url":"https://api.github.com/users/kaicataldo/followers","following_url":"https://api.github.com/users/kaicataldo/following{/other_user}","gists_url":"https://api.github.com/users/kaicataldo/gists{/gist_id}","starred_url":"https://api.github.com/users/kaicataldo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaicataldo/subscriptions","organizations_url":"https://api.github.com/users/kaicataldo/orgs","repos_url":"https://api.github.com/users/kaicataldo/repos","events_url":"https://api.github.com/users/kaicataldo/events{/privacy}","received_events_url":"https://api.github.com/users/kaicataldo/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-09T22:57:41Z","updated_at":"2016-03-11T19:31:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a086779a9b48afb5cc44d0cdf56d348039748433","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/behance/BeFF/pulls/130/commits","review_comments_url":"https://api.github.com/repos/behance/BeFF/pulls/130/comments","review_comment_url":"https://api.github.com/repos/behance/BeFF/pulls/comments{/number}","comments_url":"https://api.github.com/repos/behance/BeFF/issues/130/comments","statuses_url":"https://api.github.com/repos/behance/BeFF/statuses/b73692fed8cd1b545bcd698c7a40a248885cc1cf","head":{"label":"kaicataldo:fixes4382","ref":"fixes4382","sha":"b73692fed8cd1b545bcd698c7a40a248885cc1cf","user":{"login":"kaicataldo","id":7041728,"avatar_url":"https://avatars.githubusercontent.com/u/7041728?v=3","gravatar_id":"","url":"https://api.github.com/users/kaicataldo","html_url":"https://github.com/kaicataldo","followers_url":"https://api.github.com/users/kaicataldo/followers","following_url":"https://api.github.com/users/kaicataldo/following{/other_user}","gists_url":"https://api.github.com/users/kaicataldo/gists{/gist_id}","starred_url":"https://api.github.com/users/kaicataldo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaicataldo/subscriptions","organizations_url":"https://api.github.com/users/kaicataldo/orgs","repos_url":"https://api.github.com/users/kaicataldo/repos","events_url":"https://api.github.com/users/kaicataldo/events{/privacy}","received_events_url":"https://api.github.com/users/kaicataldo/received_events","type":"User","site_admin":false},"repo":{"id":53529685,"name":"BeFF","full_name":"kaicataldo/BeFF","owner":{"login":"kaicataldo","id":7041728,"avatar_url":"https://avatars.githubusercontent.com/u/7041728?v=3","gravatar_id":"","url":"https://api.github.com/users/kaicataldo","html_url":"https://github.com/kaicataldo","followers_url":"https://api.github.com/users/kaicataldo/followers","following_url":"https://api.github.com/users/kaicataldo/following{/other_user}","gists_url":"https://api.github.com/users/kaicataldo/gists{/gist_id}","starred_url":"https://api.github.com/users/kaicataldo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaicataldo/subscriptions","organizations_url":"https://api.github.com/users/kaicataldo/orgs","repos_url":"https://api.github.com/users/kaicataldo/repos","events_url":"https://api.github.com/users/kaicataldo/events{/privacy}","received_events_url":"https://api.github.com/users/kaicataldo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaicataldo/BeFF","description":"Behance Frontend Framework","fork":true,"url":"https://api.github.com/repos/kaicataldo/BeFF","forks_url":"https://api.github.com/repos/kaicataldo/BeFF/forks","keys_url":"https://api.github.com/repos/kaicataldo/BeFF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaicataldo/BeFF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaicataldo/BeFF/teams","hooks_url":"https://api.github.com/repos/kaicataldo/BeFF/hooks","issue_events_url":"https://api.github.com/repos/kaicataldo/BeFF/issues/events{/number}","events_url":"https://api.github.com/repos/kaicataldo/BeFF/events","assignees_url":"https://api.github.com/repos/kaicataldo/BeFF/assignees{/user}","branches_url":"https://api.github.com/repos/kaicataldo/BeFF/branches{/branch}","tags_url":"https://api.github.com/repos/kaicataldo/BeFF/tags","blobs_url":"https://api.github.com/repos/kaicataldo/BeFF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaicataldo/BeFF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaicataldo/BeFF/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaicataldo/BeFF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaicataldo/BeFF/statuses/{sha}","languages_url":"https://api.github.com/repos/kaicataldo/BeFF/languages","stargazers_url":"https://api.github.com/repos/kaicataldo/BeFF/stargazers","contributors_url":"https://api.github.com/repos/kaicataldo/BeFF/contributors","subscribers_url":"https://api.github.com/repos/kaicataldo/BeFF/subscribers","subscription_url":"https://api.github.com/repos/kaicataldo/BeFF/subscription","commits_url":"https://api.github.com/repos/kaicataldo/BeFF/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaicataldo/BeFF/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaicataldo/BeFF/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaicataldo/BeFF/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaicataldo/BeFF/contents/{+path}","compare_url":"https://api.github.com/repos/kaicataldo/BeFF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaicataldo/BeFF/merges","archive_url":"https://api.github.com/repos/kaicataldo/BeFF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaicataldo/BeFF/downloads","issues_url":"https://api.github.com/repos/kaicataldo/BeFF/issues{/number}","pulls_url":"https://api.github.com/repos/kaicataldo/BeFF/pulls{/number}","milestones_url":"https://api.github.com/repos/kaicataldo/BeFF/milestones{/number}","notifications_url":"https://api.github.com/repos/kaicataldo/BeFF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaicataldo/BeFF/labels{/name}","releases_url":"https://api.github.com/repos/kaicataldo/BeFF/releases{/id}","deployments_url":"https://api.github.com/repos/kaicataldo/BeFF/deployments","created_at":"2016-03-09T20:33:22Z","updated_at":"2016-03-09T20:33:23Z","pushed_at":"2016-03-11T19:24:24Z","git_url":"git://github.com/kaicataldo/BeFF.git","ssh_url":"git@github.com:kaicataldo/BeFF.git","clone_url":"https://github.com/kaicataldo/BeFF.git","svn_url":"https://github.com/kaicataldo/BeFF","homepage":null,"size":1135,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"behance:master","ref":"master","sha":"9ba3b4780a077ddcbf124fecdcd111fa0fd4ffcd","user":{"login":"behance","id":1197743,"avatar_url":"https://avatars.githubusercontent.com/u/1197743?v=3","gravatar_id":"","url":"https://api.github.com/users/behance","html_url":"https://github.com/behance","followers_url":"https://api.github.com/users/behance/followers","following_url":"https://api.github.com/users/behance/following{/other_user}","gists_url":"https://api.github.com/users/behance/gists{/gist_id}","starred_url":"https://api.github.com/users/behance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behance/subscriptions","organizations_url":"https://api.github.com/users/behance/orgs","repos_url":"https://api.github.com/users/behance/repos","events_url":"https://api.github.com/users/behance/events{/privacy}","received_events_url":"https://api.github.com/users/behance/received_events","type":"Organization","site_admin":false},"repo":{"id":19325681,"name":"BeFF","full_name":"behance/BeFF","owner":{"login":"behance","id":1197743,"avatar_url":"https://avatars.githubusercontent.com/u/1197743?v=3","gravatar_id":"","url":"https://api.github.com/users/behance","html_url":"https://github.com/behance","followers_url":"https://api.github.com/users/behance/followers","following_url":"https://api.github.com/users/behance/following{/other_user}","gists_url":"https://api.github.com/users/behance/gists{/gist_id}","starred_url":"https://api.github.com/users/behance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behance/subscriptions","organizations_url":"https://api.github.com/users/behance/orgs","repos_url":"https://api.github.com/users/behance/repos","events_url":"https://api.github.com/users/behance/events{/privacy}","received_events_url":"https://api.github.com/users/behance/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/behance/BeFF","description":"Behance Frontend Framework","fork":false,"url":"https://api.github.com/repos/behance/BeFF","forks_url":"https://api.github.com/repos/behance/BeFF/forks","keys_url":"https://api.github.com/repos/behance/BeFF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/behance/BeFF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/behance/BeFF/teams","hooks_url":"https://api.github.com/repos/behance/BeFF/hooks","issue_events_url":"https://api.github.com/repos/behance/BeFF/issues/events{/number}","events_url":"https://api.github.com/repos/behance/BeFF/events","assignees_url":"https://api.github.com/repos/behance/BeFF/assignees{/user}","branches_url":"https://api.github.com/repos/behance/BeFF/branches{/branch}","tags_url":"https://api.github.com/repos/behance/BeFF/tags","blobs_url":"https://api.github.com/repos/behance/BeFF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/behance/BeFF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/behance/BeFF/git/refs{/sha}","trees_url":"https://api.github.com/repos/behance/BeFF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/behance/BeFF/statuses/{sha}","languages_url":"https://api.github.com/repos/behance/BeFF/languages","stargazers_url":"https://api.github.com/repos/behance/BeFF/stargazers","contributors_url":"https://api.github.com/repos/behance/BeFF/contributors","subscribers_url":"https://api.github.com/repos/behance/BeFF/subscribers","subscription_url":"https://api.github.com/repos/behance/BeFF/subscription","commits_url":"https://api.github.com/repos/behance/BeFF/commits{/sha}","git_commits_url":"https://api.github.com/repos/behance/BeFF/git/commits{/sha}","comments_url":"https://api.github.com/repos/behance/BeFF/comments{/number}","issue_comment_url":"https://api.github.com/repos/behance/BeFF/issues/comments{/number}","contents_url":"https://api.github.com/repos/behance/BeFF/contents/{+path}","compare_url":"https://api.github.com/repos/behance/BeFF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/behance/BeFF/merges","archive_url":"https://api.github.com/repos/behance/BeFF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/behance/BeFF/downloads","issues_url":"https://api.github.com/repos/behance/BeFF/issues{/number}","pulls_url":"https://api.github.com/repos/behance/BeFF/pulls{/number}","milestones_url":"https://api.github.com/repos/behance/BeFF/milestones{/number}","notifications_url":"https://api.github.com/repos/behance/BeFF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/behance/BeFF/labels{/name}","releases_url":"https://api.github.com/repos/behance/BeFF/releases{/id}","deployments_url":"https://api.github.com/repos/behance/BeFF/deployments","created_at":"2014-04-30T20:06:04Z","updated_at":"2016-02-27T02:21:05Z","pushed_at":"2016-03-11T19:24:25Z","git_url":"git://github.com/behance/BeFF.git","ssh_url":"git@github.com:behance/BeFF.git","clone_url":"https://github.com/behance/BeFF.git","svn_url":"https://github.com/behance/BeFF","homepage":null,"size":1141,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":9,"forks":12,"open_issues":9,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/behance/BeFF/pulls/130"},"html":{"href":"https://github.com/behance/BeFF/pull/130"},"issue":{"href":"https://api.github.com/repos/behance/BeFF/issues/130"},"comments":{"href":"https://api.github.com/repos/behance/BeFF/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/behance/BeFF/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/behance/BeFF/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/behance/BeFF/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/behance/BeFF/statuses/b73692fed8cd1b545bcd698c7a40a248885cc1cf"}}}}