{"action":"created","comment":{"url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/pulls/comments/195966858","pull_request_review_id":129429737,"id":195966858,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTk2Njg1OA==","diff_hunk":"@@ -0,0 +1,173 @@\n+/* This Source Code Form is subject to the terms of the Mozilla Public\n+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,\n+ * You can obtain one at http://mozilla.org/MPL/2.0/. */\n+\n+'use strict'\n+\n+const Immutable = require('immutable')\n+const sinon = require('sinon')\n+\n+const Publisher = require('../abs/publisher')\n+const {request} = require('../lib/util/request')\n+const settings = require('../browser-laptop/js/constants/settings')\n+const ledgerState = require('../browser-laptop/app/common/state/ledgerState')\n+const responses = require('../lib/data/responses.json')\n+\n+const defaultAppState = Immutable.fromJS({\n+  cache: {\n+    ledgerVideos: {}\n+  },\n+  ledger: {\n+    about: {}\n+  },\n+  about: {\n+    preferences: {}\n+  },\n+  tabs: [],\n+  windows: [{\n+    focused: true,\n+    windowId: -1\n+  }]\n+})\n+\n+class JS extends Publisher {\n+  constructor () {\n+    super()\n+    this.ledger = null\n+    this.timeStamp = 1525688397657\n+    this.state = defaultAppState\n+    this.mediaType = null\n+    this.mediaMinimum = null\n+  }\n+\n+  get settingsP () {","path":"js/publisher.js","position":43,"original_position":43,"commit_id":"3ec571975c197cd9358d7115cab98e1c4e5498e5","original_commit_id":"3ec571975c197cd9358d7115cab98e1c4e5498e5","user":{"login":"NejcZdovc","id":9574457,"node_id":"MDQ6VXNlcjk1NzQ0NTc=","avatar_url":"https://avatars1.githubusercontent.com/u/9574457?v=4","gravatar_id":"","url":"https://api.github.com/users/NejcZdovc","html_url":"https://github.com/NejcZdovc","followers_url":"https://api.github.com/users/NejcZdovc/followers","following_url":"https://api.github.com/users/NejcZdovc/following{/other_user}","gists_url":"https://api.github.com/users/NejcZdovc/gists{/gist_id}","starred_url":"https://api.github.com/users/NejcZdovc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NejcZdovc/subscriptions","organizations_url":"https://api.github.com/users/NejcZdovc/orgs","repos_url":"https://api.github.com/users/NejcZdovc/repos","events_url":"https://api.github.com/users/NejcZdovc/events{/privacy}","received_events_url":"https://api.github.com/users/NejcZdovc/received_events","type":"User","site_admin":false},"body":"I see that this function is used in other tests as well. Can we pull it in shared?","created_at":"2018-06-18T05:21:04Z","updated_at":"2018-06-18T05:21:04Z","html_url":"https://github.com/brave-intl/bat-ledger-spec/pull/17#discussion_r195966858","pull_request_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/pulls/17","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/brave-intl/bat-ledger-spec/pulls/comments/195966858"},"html":{"href":"https://github.com/brave-intl/bat-ledger-spec/pull/17#discussion_r195966858"},"pull_request":{"href":"https://api.github.com/repos/brave-intl/bat-ledger-spec/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/pulls/17","id":194427296,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NDI3Mjk2","html_url":"https://github.com/brave-intl/bat-ledger-spec/pull/17","diff_url":"https://github.com/brave-intl/bat-ledger-spec/pull/17.diff","patch_url":"https://github.com/brave-intl/bat-ledger-spec/pull/17.patch","issue_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/issues/17","number":17,"state":"open","locked":false,"title":"Publisher Specification [WIP]","user":{"login":"ryanml","id":8732757,"node_id":"MDQ6VXNlcjg3MzI3NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/8732757?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanml","html_url":"https://github.com/ryanml","followers_url":"https://api.github.com/users/ryanml/followers","following_url":"https://api.github.com/users/ryanml/following{/other_user}","gists_url":"https://api.github.com/users/ryanml/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanml/subscriptions","organizations_url":"https://api.github.com/users/ryanml/orgs","repos_url":"https://api.github.com/users/ryanml/repos","events_url":"https://api.github.com/users/ryanml/events{/privacy}","received_events_url":"https://api.github.com/users/ryanml/received_events","type":"User","site_admin":false},"body":"Progress for the Publishers' specification","created_at":"2018-06-12T22:40:03Z","updated_at":"2018-06-18T05:21:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aadc70cabf5a359f33bdfee04fef153053e02f1d","assignee":{"login":"ryanml","id":8732757,"node_id":"MDQ6VXNlcjg3MzI3NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/8732757?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanml","html_url":"https://github.com/ryanml","followers_url":"https://api.github.com/users/ryanml/followers","following_url":"https://api.github.com/users/ryanml/following{/other_user}","gists_url":"https://api.github.com/users/ryanml/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanml/subscriptions","organizations_url":"https://api.github.com/users/ryanml/orgs","repos_url":"https://api.github.com/users/ryanml/repos","events_url":"https://api.github.com/users/ryanml/events{/privacy}","received_events_url":"https://api.github.com/users/ryanml/received_events","type":"User","site_admin":false},"assignees":[{"login":"ryanml","id":8732757,"node_id":"MDQ6VXNlcjg3MzI3NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/8732757?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanml","html_url":"https://github.com/ryanml","followers_url":"https://api.github.com/users/ryanml/followers","following_url":"https://api.github.com/users/ryanml/following{/other_user}","gists_url":"https://api.github.com/users/ryanml/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanml/subscriptions","organizations_url":"https://api.github.com/users/ryanml/orgs","repos_url":"https://api.github.com/users/ryanml/repos","events_url":"https://api.github.com/users/ryanml/events{/privacy}","received_events_url":"https://api.github.com/users/ryanml/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":918882139,"node_id":"MDU6TGFiZWw5MTg4ODIxMzk=","url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/labels/PR/work-in-progress%20%E2%9A%92","name":"PR/work-in-progress ⚒","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/pulls/17/commits","review_comments_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/pulls/17/comments","review_comment_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/issues/17/comments","statuses_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/statuses/3ec571975c197cd9358d7115cab98e1c4e5498e5","head":{"label":"ryanml:publisher-spec","ref":"publisher-spec","sha":"3ec571975c197cd9358d7115cab98e1c4e5498e5","user":{"login":"ryanml","id":8732757,"node_id":"MDQ6VXNlcjg3MzI3NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/8732757?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanml","html_url":"https://github.com/ryanml","followers_url":"https://api.github.com/users/ryanml/followers","following_url":"https://api.github.com/users/ryanml/following{/other_user}","gists_url":"https://api.github.com/users/ryanml/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanml/subscriptions","organizations_url":"https://api.github.com/users/ryanml/orgs","repos_url":"https://api.github.com/users/ryanml/repos","events_url":"https://api.github.com/users/ryanml/events{/privacy}","received_events_url":"https://api.github.com/users/ryanml/received_events","type":"User","site_admin":false},"repo":{"id":132703966,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI3MDM5NjY=","name":"bat-ledger-spec","full_name":"ryanml/bat-ledger-spec","owner":{"login":"ryanml","id":8732757,"node_id":"MDQ6VXNlcjg3MzI3NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/8732757?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanml","html_url":"https://github.com/ryanml","followers_url":"https://api.github.com/users/ryanml/followers","following_url":"https://api.github.com/users/ryanml/following{/other_user}","gists_url":"https://api.github.com/users/ryanml/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanml/subscriptions","organizations_url":"https://api.github.com/users/ryanml/orgs","repos_url":"https://api.github.com/users/ryanml/repos","events_url":"https://api.github.com/users/ryanml/events{/privacy}","received_events_url":"https://api.github.com/users/ryanml/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryanml/bat-ledger-spec","description":"Test suite for ledger code (JS and C++)","fork":true,"url":"https://api.github.com/repos/ryanml/bat-ledger-spec","forks_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/forks","keys_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/teams","hooks_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/hooks","issue_events_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/issues/events{/number}","events_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/events","assignees_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/assignees{/user}","branches_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/branches{/branch}","tags_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/tags","blobs_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/languages","stargazers_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/stargazers","contributors_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/contributors","subscribers_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/subscribers","subscription_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/subscription","commits_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/contents/{+path}","compare_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/merges","archive_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/downloads","issues_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/issues{/number}","pulls_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/labels{/name}","releases_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/releases{/id}","deployments_url":"https://api.github.com/repos/ryanml/bat-ledger-spec/deployments","created_at":"2018-05-09T05:01:35Z","updated_at":"2018-05-15T03:21:50Z","pushed_at":"2018-06-15T19:53:30Z","git_url":"git://github.com/ryanml/bat-ledger-spec.git","ssh_url":"git@github.com:ryanml/bat-ledger-spec.git","clone_url":"https://github.com/ryanml/bat-ledger-spec.git","svn_url":"https://github.com/ryanml/bat-ledger-spec","homepage":null,"size":106,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"brave-intl:master","ref":"master","sha":"4e67883d83b64272fc5260806add1701c0f01e83","user":{"login":"brave-intl","id":28767864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4NzY3ODY0","avatar_url":"https://avatars2.githubusercontent.com/u/28767864?v=4","gravatar_id":"","url":"https://api.github.com/users/brave-intl","html_url":"https://github.com/brave-intl","followers_url":"https://api.github.com/users/brave-intl/followers","following_url":"https://api.github.com/users/brave-intl/following{/other_user}","gists_url":"https://api.github.com/users/brave-intl/gists{/gist_id}","starred_url":"https://api.github.com/users/brave-intl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brave-intl/subscriptions","organizations_url":"https://api.github.com/users/brave-intl/orgs","repos_url":"https://api.github.com/users/brave-intl/repos","events_url":"https://api.github.com/users/brave-intl/events{/privacy}","received_events_url":"https://api.github.com/users/brave-intl/received_events","type":"Organization","site_admin":false},"repo":{"id":125887819,"node_id":"MDEwOlJlcG9zaXRvcnkxMjU4ODc4MTk=","name":"bat-ledger-spec","full_name":"brave-intl/bat-ledger-spec","owner":{"login":"brave-intl","id":28767864,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4NzY3ODY0","avatar_url":"https://avatars2.githubusercontent.com/u/28767864?v=4","gravatar_id":"","url":"https://api.github.com/users/brave-intl","html_url":"https://github.com/brave-intl","followers_url":"https://api.github.com/users/brave-intl/followers","following_url":"https://api.github.com/users/brave-intl/following{/other_user}","gists_url":"https://api.github.com/users/brave-intl/gists{/gist_id}","starred_url":"https://api.github.com/users/brave-intl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brave-intl/subscriptions","organizations_url":"https://api.github.com/users/brave-intl/orgs","repos_url":"https://api.github.com/users/brave-intl/repos","events_url":"https://api.github.com/users/brave-intl/events{/privacy}","received_events_url":"https://api.github.com/users/brave-intl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brave-intl/bat-ledger-spec","description":"Test suite for ledger code (JS and C++)","fork":false,"url":"https://api.github.com/repos/brave-intl/bat-ledger-spec","forks_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/forks","keys_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/teams","hooks_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/hooks","issue_events_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/issues/events{/number}","events_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/events","assignees_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/assignees{/user}","branches_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/branches{/branch}","tags_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/tags","blobs_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/languages","stargazers_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/stargazers","contributors_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/contributors","subscribers_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/subscribers","subscription_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/subscription","commits_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/contents/{+path}","compare_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/merges","archive_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/downloads","issues_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/issues{/number}","pulls_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/labels{/name}","releases_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/releases{/id}","deployments_url":"https://api.github.com/repos/brave-intl/bat-ledger-spec/deployments","created_at":"2018-03-19T16:26:33Z","updated_at":"2018-06-10T23:14:11Z","pushed_at":"2018-06-15T19:53:31Z","git_url":"git://github.com/brave-intl/bat-ledger-spec.git","ssh_url":"git@github.com:brave-intl/bat-ledger-spec.git","clone_url":"https://github.com/brave-intl/bat-ledger-spec.git","svn_url":"https://github.com/brave-intl/bat-ledger-spec","homepage":null,"size":90,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0","node_id":"MDc6TGljZW5zZTE0"},"forks":2,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brave-intl/bat-ledger-spec/pulls/17"},"html":{"href":"https://github.com/brave-intl/bat-ledger-spec/pull/17"},"issue":{"href":"https://api.github.com/repos/brave-intl/bat-ledger-spec/issues/17"},"comments":{"href":"https://api.github.com/repos/brave-intl/bat-ledger-spec/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/brave-intl/bat-ledger-spec/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/brave-intl/bat-ledger-spec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brave-intl/bat-ledger-spec/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/brave-intl/bat-ledger-spec/statuses/3ec571975c197cd9358d7115cab98e1c4e5498e5"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"NejcZdovc"}}