{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/kuma/pulls/comments/240914849","pull_request_review_id":184052890,"id":240914849,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDkxNDg0OQ==","diff_hunk":"@@ -0,0 +1,23 @@\n+var mdn = window.mdn || {};\n+var paymentsHandlerUtils = {\n+    getNewValue: function(selectedAmount) {\n+        'use strict';\n+        return selectedAmount < 1 || isNaN(selectedAmount)\n+            ? ''\n+            : '$' + selectedAmount;\n+    },\n+    getSelectedAmount: function(value) {\n+        'use strict';\n+        return value % 1 === 0 ? parseInt(value, 10) : parseFloat(value).toFixed(2);","path":"kuma/static/js/components/payments/payments-handler-utils.js","position":11,"original_position":11,"commit_id":"676a087b72bda24a3bb9f225a95942e0a1d6597b","original_commit_id":"676a087b72bda24a3bb9f225a95942e0a1d6597b","user":{"login":"schalkneethling","id":10350960,"node_id":"MDQ6VXNlcjEwMzUwOTYw","avatar_url":"https://avatars1.githubusercontent.com/u/10350960?v=4","gravatar_id":"","url":"https://api.github.com/users/schalkneethling","html_url":"https://github.com/schalkneethling","followers_url":"https://api.github.com/users/schalkneethling/followers","following_url":"https://api.github.com/users/schalkneethling/following{/other_user}","gists_url":"https://api.github.com/users/schalkneethling/gists{/gist_id}","starred_url":"https://api.github.com/users/schalkneethling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schalkneethling/subscriptions","organizations_url":"https://api.github.com/users/schalkneethling/orgs","repos_url":"https://api.github.com/users/schalkneethling/repos","events_url":"https://api.github.com/users/schalkneethling/events{/privacy}","received_events_url":"https://api.github.com/users/schalkneethling/received_events","type":"User","site_admin":false},"body":"Also bothers me ;) I do not believe any math is done on this so, casting it to a `String` certainly makes sense.","created_at":"2018-12-12T08:14:29Z","updated_at":"2018-12-12T08:14:29Z","html_url":"https://github.com/mozilla/kuma/pull/5162#discussion_r240914849","pull_request_url":"https://api.github.com/repos/mozilla/kuma/pulls/5162","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/mozilla/kuma/pulls/comments/240914849"},"html":{"href":"https://github.com/mozilla/kuma/pull/5162#discussion_r240914849"},"pull_request":{"href":"https://api.github.com/repos/mozilla/kuma/pulls/5162"}},"in_reply_to_id":240769278},"pull_request":{"url":"https://api.github.com/repos/mozilla/kuma/pulls/5162","id":237663332,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3NjYzMzMy","html_url":"https://github.com/mozilla/kuma/pull/5162","diff_url":"https://github.com/mozilla/kuma/pull/5162.diff","patch_url":"https://github.com/mozilla/kuma/pull/5162.patch","issue_url":"https://api.github.com/repos/mozilla/kuma/issues/5162","number":5162,"state":"open","locked":false,"title":"Fix Bug 1513203, add Jest and True, and initial tests","user":{"login":"schalkneethling","id":10350960,"node_id":"MDQ6VXNlcjEwMzUwOTYw","avatar_url":"https://avatars1.githubusercontent.com/u/10350960?v=4","gravatar_id":"","url":"https://api.github.com/users/schalkneethling","html_url":"https://github.com/schalkneethling","followers_url":"https://api.github.com/users/schalkneethling/followers","following_url":"https://api.github.com/users/schalkneethling/following{/other_user}","gists_url":"https://api.github.com/users/schalkneethling/gists{/gist_id}","starred_url":"https://api.github.com/users/schalkneethling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schalkneethling/subscriptions","organizations_url":"https://api.github.com/users/schalkneethling/orgs","repos_url":"https://api.github.com/users/schalkneethling/repos","events_url":"https://api.github.com/users/schalkneethling/events{/privacy}","received_events_url":"https://api.github.com/users/schalkneethling/received_events","type":"User","site_admin":false},"body":"@davidflanagan As mentioned in the bug, this adds two frameworks:\r\n\r\n1. Jest\r\n2. True\r\n\r\nFor True I had to also add Mocha as the test runner. I am looking into writing a little bridge so I can also run True with Jest, so that is temporary. I also added a small number of tests for each.\r\n\r\nAfter this is merged, I will be pushing a lot more tests for both. r?","created_at":"2018-12-11T12:36:16Z","updated_at":"2018-12-12T08:14:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97b4788b644ee99b82cb77a357cc041781eb6c2b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":904440209,"node_id":"MDU6TGFiZWw5MDQ0NDAyMDk=","url":"https://api.github.com/repos/mozilla/kuma/labels/frontend","name":"frontend","color":"bc423c","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/kuma/pulls/5162/commits","review_comments_url":"https://api.github.com/repos/mozilla/kuma/pulls/5162/comments","review_comment_url":"https://api.github.com/repos/mozilla/kuma/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/kuma/issues/5162/comments","statuses_url":"https://api.github.com/repos/mozilla/kuma/statuses/676a087b72bda24a3bb9f225a95942e0a1d6597b","head":{"label":"schalkneethling:bug1513203-add-jest-and-true-frameworks","ref":"bug1513203-add-jest-and-true-frameworks","sha":"676a087b72bda24a3bb9f225a95942e0a1d6597b","user":{"login":"schalkneethling","id":10350960,"node_id":"MDQ6VXNlcjEwMzUwOTYw","avatar_url":"https://avatars1.githubusercontent.com/u/10350960?v=4","gravatar_id":"","url":"https://api.github.com/users/schalkneethling","html_url":"https://github.com/schalkneethling","followers_url":"https://api.github.com/users/schalkneethling/followers","following_url":"https://api.github.com/users/schalkneethling/following{/other_user}","gists_url":"https://api.github.com/users/schalkneethling/gists{/gist_id}","starred_url":"https://api.github.com/users/schalkneethling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schalkneethling/subscriptions","organizations_url":"https://api.github.com/users/schalkneethling/orgs","repos_url":"https://api.github.com/users/schalkneethling/repos","events_url":"https://api.github.com/users/schalkneethling/events{/privacy}","received_events_url":"https://api.github.com/users/schalkneethling/received_events","type":"User","site_admin":false},"repo":{"id":59740073,"node_id":"MDEwOlJlcG9zaXRvcnk1OTc0MDA3Mw==","name":"kuma","full_name":"schalkneethling/kuma","private":false,"owner":{"login":"schalkneethling","id":10350960,"node_id":"MDQ6VXNlcjEwMzUwOTYw","avatar_url":"https://avatars1.githubusercontent.com/u/10350960?v=4","gravatar_id":"","url":"https://api.github.com/users/schalkneethling","html_url":"https://github.com/schalkneethling","followers_url":"https://api.github.com/users/schalkneethling/followers","following_url":"https://api.github.com/users/schalkneethling/following{/other_user}","gists_url":"https://api.github.com/users/schalkneethling/gists{/gist_id}","starred_url":"https://api.github.com/users/schalkneethling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schalkneethling/subscriptions","organizations_url":"https://api.github.com/users/schalkneethling/orgs","repos_url":"https://api.github.com/users/schalkneethling/repos","events_url":"https://api.github.com/users/schalkneethling/events{/privacy}","received_events_url":"https://api.github.com/users/schalkneethling/received_events","type":"User","site_admin":false},"html_url":"https://github.com/schalkneethling/kuma","description":"The project that powers MDN.","fork":true,"url":"https://api.github.com/repos/schalkneethling/kuma","forks_url":"https://api.github.com/repos/schalkneethling/kuma/forks","keys_url":"https://api.github.com/repos/schalkneethling/kuma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schalkneethling/kuma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schalkneethling/kuma/teams","hooks_url":"https://api.github.com/repos/schalkneethling/kuma/hooks","issue_events_url":"https://api.github.com/repos/schalkneethling/kuma/issues/events{/number}","events_url":"https://api.github.com/repos/schalkneethling/kuma/events","assignees_url":"https://api.github.com/repos/schalkneethling/kuma/assignees{/user}","branches_url":"https://api.github.com/repos/schalkneethling/kuma/branches{/branch}","tags_url":"https://api.github.com/repos/schalkneethling/kuma/tags","blobs_url":"https://api.github.com/repos/schalkneethling/kuma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schalkneethling/kuma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schalkneethling/kuma/git/refs{/sha}","trees_url":"https://api.github.com/repos/schalkneethling/kuma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schalkneethling/kuma/statuses/{sha}","languages_url":"https://api.github.com/repos/schalkneethling/kuma/languages","stargazers_url":"https://api.github.com/repos/schalkneethling/kuma/stargazers","contributors_url":"https://api.github.com/repos/schalkneethling/kuma/contributors","subscribers_url":"https://api.github.com/repos/schalkneethling/kuma/subscribers","subscription_url":"https://api.github.com/repos/schalkneethling/kuma/subscription","commits_url":"https://api.github.com/repos/schalkneethling/kuma/commits{/sha}","git_commits_url":"https://api.github.com/repos/schalkneethling/kuma/git/commits{/sha}","comments_url":"https://api.github.com/repos/schalkneethling/kuma/comments{/number}","issue_comment_url":"https://api.github.com/repos/schalkneethling/kuma/issues/comments{/number}","contents_url":"https://api.github.com/repos/schalkneethling/kuma/contents/{+path}","compare_url":"https://api.github.com/repos/schalkneethling/kuma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schalkneethling/kuma/merges","archive_url":"https://api.github.com/repos/schalkneethling/kuma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schalkneethling/kuma/downloads","issues_url":"https://api.github.com/repos/schalkneethling/kuma/issues{/number}","pulls_url":"https://api.github.com/repos/schalkneethling/kuma/pulls{/number}","milestones_url":"https://api.github.com/repos/schalkneethling/kuma/milestones{/number}","notifications_url":"https://api.github.com/repos/schalkneethling/kuma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schalkneethling/kuma/labels{/name}","releases_url":"https://api.github.com/repos/schalkneethling/kuma/releases{/id}","deployments_url":"https://api.github.com/repos/schalkneethling/kuma/deployments","created_at":"2016-05-26T10:02:13Z","updated_at":"2018-12-06T14:18:33Z","pushed_at":"2018-12-11T12:33:18Z","git_url":"git://github.com/schalkneethling/kuma.git","ssh_url":"git@github.com:schalkneethling/kuma.git","clone_url":"https://github.com/schalkneethling/kuma.git","svn_url":"https://github.com/schalkneethling/kuma","homepage":"https://developer.mozilla.org","size":208131,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"mozilla:master","ref":"master","sha":"4ec6e67c56a6cdd1bcbabb13002782f3b7922874","user":{"login":"mozilla","id":131524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTUyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":1352520,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUyNTIw","name":"kuma","full_name":"mozilla/kuma","private":false,"owner":{"login":"mozilla","id":131524,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTUyNA==","avatar_url":"https://avatars2.githubusercontent.com/u/131524?v=4","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mozilla/kuma","description":"The project that powers MDN.","fork":false,"url":"https://api.github.com/repos/mozilla/kuma","forks_url":"https://api.github.com/repos/mozilla/kuma/forks","keys_url":"https://api.github.com/repos/mozilla/kuma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/kuma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/kuma/teams","hooks_url":"https://api.github.com/repos/mozilla/kuma/hooks","issue_events_url":"https://api.github.com/repos/mozilla/kuma/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/kuma/events","assignees_url":"https://api.github.com/repos/mozilla/kuma/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/kuma/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/kuma/tags","blobs_url":"https://api.github.com/repos/mozilla/kuma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/kuma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/kuma/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/kuma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/kuma/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/kuma/languages","stargazers_url":"https://api.github.com/repos/mozilla/kuma/stargazers","contributors_url":"https://api.github.com/repos/mozilla/kuma/contributors","subscribers_url":"https://api.github.com/repos/mozilla/kuma/subscribers","subscription_url":"https://api.github.com/repos/mozilla/kuma/subscription","commits_url":"https://api.github.com/repos/mozilla/kuma/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/kuma/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/kuma/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/kuma/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/kuma/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/kuma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/kuma/merges","archive_url":"https://api.github.com/repos/mozilla/kuma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/kuma/downloads","issues_url":"https://api.github.com/repos/mozilla/kuma/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/kuma/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/kuma/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/kuma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/kuma/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/kuma/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/kuma/deployments","created_at":"2011-02-10T21:48:06Z","updated_at":"2018-12-11T17:36:27Z","pushed_at":"2018-12-12T01:19:46Z","git_url":"git://github.com/mozilla/kuma.git","ssh_url":"git@github.com:mozilla/kuma.git","clone_url":"https://github.com/mozilla/kuma.git","svn_url":"https://github.com/mozilla/kuma","homepage":"https://developer.mozilla.org","size":207368,"stargazers_count":1355,"watchers_count":1355,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":642,"mirror_url":null,"archived":false,"open_issues_count":17,"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":642,"open_issues":17,"watchers":1355,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/kuma/pulls/5162"},"html":{"href":"https://github.com/mozilla/kuma/pull/5162"},"issue":{"href":"https://api.github.com/repos/mozilla/kuma/issues/5162"},"comments":{"href":"https://api.github.com/repos/mozilla/kuma/issues/5162/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/kuma/pulls/5162/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/kuma/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/kuma/pulls/5162/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/kuma/statuses/676a087b72bda24a3bb9f225a95942e0a1d6597b"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"schalkneethling"}}